public static void Strascii(String str) {
for(int i = 0; i < str.length() - 1; i++) {
int asci1 = str.charAt(i);
int asci2 = str.charAt(i + 1);
System.out.print(str.charAt(i) + (asci2 - asci1));
}
I got this q with another method but here the issue was my ans was all integers. I want to if there is a way to print string and int together in a single syso statement.