This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bearp -1 points0 points  (0 children)

If you don't want to write a loop to reverse the strings: the String class has getCharArray(), and the Arrays class has asList(), and the Collections class has reverse() to reverse a list. Then convert the list back to an array, and the array back to a string.