Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting using Lists

 
Gregor Joseph
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In how many different ways can I sort a List?

Thanks in advance.

Regards
GJ
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ehm...as many ways as you can think of? (Is this a trick question?)
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In how many different ways can I sort a List?
You can start by reading the following:

The Java� Tutorial - Object Ordering
Making Java Objects Comparable
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic