permaculture playing cards*
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: 18126

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

Don't get me started about those stupid light bulbs.
subject: Sorting alphabetic characters (using Array)
Similar Threads
Letter counter program. having trouble understanding it.
Please help in this selection sort
Search Element in array Problem
The code is giving runtime exception
sort by ascending order