• Post Reply Bookmark Topic Watch Topic
  • New Topic

Load Main class error!!! trying to sort the names inputted in alphabetical order...please help!  RSS feed

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you will have to be more specific. There are no details here on what the problem is, what you expect to happen, or what does happen.

I am able to compile and run your code, as is (ok, i reformatted it to make it legible), so unless you tell us what your problem is, we can't really help.

edit: here is what I got:

C:\slop>java sorting fred bob alic mary
Sorted order is
mary
fred
bob
alic
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!