Write a Java Program to reverse a string without using String inbuilt function. | Sololearn: Learn to code for FREE!
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.

19th Jan 2021, 5:52 PM
Shyam Buhecha
Shyam Buhecha - avatar
2 Answers
+ 13
show your attempt first
19th Jan 2021, 5:57 PM
ÃKR
ÃKR - avatar
+ 3
String x; for(int y=(x="Hello World").length()-1;y>-1;y--){ System.out.print(x.charAt(y));
19th Jan 2021, 6:46 PM
D_Stark
D_Stark - avatar