0

How to do ascending order for string name

3rd Feb 2019, 2:44 AM
Malvin Michael
Malvin Michael - avatar
2 Respuestas
+ 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.
3rd Feb 2019, 8:35 AM
Himani
+ 2
Can you please explain your question more? I don’t understand.
3rd Feb 2019, 5:03 AM
Rowsej
Rowsej - avatar