File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Sorting alphabetic characters (using Array) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sorting alphabetic characters (using Array)" Watch "Sorting alphabetic characters (using Array)" New topic

Sorting alphabetic characters (using Array)

Malcolm Bibins

Joined: Mar 12, 2013
Posts: 7
I tried to create a program that reads in 10 alphabetic characters, then displays those characters in alphabetic order. I thought I had it, but the code I have now doesn't sort them. It actually just gives me the characters back in the exact same order. Here is what I have:

If someone can someone show me what I did wrong, and a code as to how to remedy the situation, I'd be very grateful.
Malcolm Bibins

Joined: Mar 12, 2013
Posts: 7
Oh, wow. Nevermind folks. Easy fix.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19847

So, you changed "Ready, Fire, Aim" to "Ready, Aim, Fire"?

I agree. Here's the link:
subject: Sorting alphabetic characters (using Array)
It's not a secret anymore!