java program of string Buffer program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DHARMISTHA
    New Member
    • Oct 2013
    • 1

    java program of string Buffer program

    how to write java pro of to rewite STRING TO GINRST IN alphabetical order ?
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    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

    Working...