revert text on a string java geeksforgeeks code example
Example 1: java string reverse
String rev = new StringBuilder("Your String").reverse().toString();
Example 2: reverse a string in java
As we know that String is immutable. String class do not have reverse() method.