• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

explain this method in java.util


hello there,

Can anybody explain this method in java.util and the comparator c

sort(List list, Comparator c)

i understand it is used to sorts the specified list

this bit i dont understand "according to the order induced by the specified comparator"

cheers
zolf
0
zolf
Asked:
zolf
  • 2
2 Solutions
 
hoomanvCommented:
this link will teach you how to sort collections using comparable and comparator
http://www.javaworld.com/javaworld/jw-12-2002/jw-1227-sort.html
0
 
hoomanvCommented:
0
 
sciuriwareCommented:
Every time the sorting method wants to compare anything it calls the Comparator's compare().

;JOOP!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now