0
How to do ascending order for string name
2 Réponses
+ 5
String s="kdaaeg";
char[] ch=s.toCharArray(); //this would convert the string to character array
Arrays.sort(ch); //this would sort the character array in ascending order
I guess you were asking this.
+ 2
Can you please explain your question more? I don’t understand.