0
How do I print a word backwards using Java?
10 Answers
+ 3
Using StringBuilder wrapper
String word = "Hello world!";
String reversed = new StringBuilder(word)
.reverse()
.toString();
+ 1
But how?
+ 1
Did you completed the loop chapter? If yes then can you show me to print a string charecter one by one.. Or post any attempt for that..
If you not completed the lessons for strings and loops then just complete first.. Don't jump farward.. You can not understood, even if I say the way, also..
+ 1
I don't know but l will try God helping me
+ 1
Thank you
+ 1
EliSucco if you are asking question then, condition shloud be
i >= 0 to print first char also...
0
You can use a loop to track from backwards simply..
0
What ever you know, try by that first and post your try to know your understandings.. So that others help to complete the task....
0
Ok thanks