Reverse string in Java

voted: 1
reverse string

The simplest and quickest (to write) way to reverse string in Java which I have ever seen without third party libraries.

public static String reverseString(String str) {
    return new StringBuilder(str).reverse().toString();
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.