• Post Reply Bookmark Topic Watch Topic
  • New Topic

compareTo and compare

 
Sanjeev Singh
Ranch Hand
Posts: 381
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
Can anybody please explain
How the compareTo() and compare() method is used by Collections for sorting and serching?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!