New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Write a Java Program to reverse a string without using String inbuilt function.
2 Answers
+ 13
show your attempt first
+ 3
String x;
for(int y=(x="Hello World").length()-1;y>-1;y--){
System.out.print(x.charAt(y));