public String afterSort(String s){ char[] ss = s.toCharArray(); Arrays.sort(ss); return String.valueOf(ss); }