public static String reverseString(String str){
  StringBuilder sb=new StringBuilder(str);
  sb.reverse();
  return sb.toString();
}

public static String reverseString ( String str ) { StringBuilder sb = new StringBuilder ( str ) ; sb . reverse ( ) ; return sb . toString ( ) ; }
reverse the characters of a string value
