• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the difference beteween Collections.sort and Arrays.sort  RSS feed

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference beteween Collections.sort and Arrays.sort

Thanks
Gaurav
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Collections.sort works on Collection instances, whereas Arrays.sort works on java arrays. Have a look at the respective classes in the API and you'll get the difference.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a servlet question, moving to Java in General (beginner)

Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!