0
Reverse the string using index
Can anyone help me out to reverse the string using index in java
6 odpowiedzi
+ 3
It is better to use StringBuffer or StringBuilder
Then append and create String
+ 1
create new empty string
For loop starting from string length - 1 to 0
in loop get charAt(i) and append it to the new string
+ 1
Lol, no martin i know how to reverse a string in python and i start Learning java so don't know how to do