• 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic