how to write java pro of to rewite STRING TO GINRST IN alphabetical order ?
java program of string Buffer program
Collapse
X
-
Tags: None
-
Hi DHARMISTHA and welcome to bytes.com!
If I understand you correctly, you're trying to take a String and order the letters of that string in alphabetical Order, correct?
If so, there are a few things that may be useful. For one, there's the Arrays#sort(cha r[]) function that will sort the elements of an array. Such an array can be retrieved from any String quite easily (check the String API) and creating a String from such an array is also easy (again, check the same API).
Comment