public static String sort(String s){
  char[] chars=s.toCharArray();
  Arrays.sort(chars);
  return new String(chars);
}

public static String sort ( String s ) { char [ ] chars = s . toCharArray ( ) ; Arrays . sort ( chars ) ; return new String ( chars ) ; }
sorts the characters in the specified string .
