By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,654 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,654 IT Pros & Developers. It's quick & easy.

java program of string Buffer program

P: 1
how to write java pro of to rewite STRING TO GINRST IN alphabetical order ?
Oct 14 '13 #1
Share this Question
Share on Google+
1 Reply


Nepomuk
Expert 2.5K+
P: 3,112
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(char[]) 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).
Oct 14 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.