java string reverse using strrev code example
Example 1: java string reverse
String rev = new StringBuilder("Your String").reverse().toString();
Example 2: reverse string java
String string="whatever";
String reverse = new StringBuffer(string).reverse().toString();
System.out.println(reverse);