What does the following code output?
String str = "Hello, Java";
int i = str.length() - 1;
while (i >= 1) {
System.out.print(str.charAt(i));
i--;
}What does the following code output?
String str = "Hello, Java";
int i = str.length() - 1;
while (i >= 1) {
System.out.print(str.charAt(i));
i--;
}Create a free account to access the full topic