A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Usage of Collection classes sorting mechanism in a project
Ravi Kiran Va
Joined: Apr 18, 2009
Jan 29, 2010 00:00:50
I am having a query againist the usage of a Comparator or Comparable or Collection classes sort Mechanism in util package .
Can any body please tell me where actually this concept will be used in a project.
(What i think is that as the data from database will be returned by applying order by know )
Thank you .
Save India From Corruption - Anna Hazare.
Joined: Jan 12, 2009
Jan 29, 2010 00:16:38
if your data is coming from a database, i would prefer to do the sorting in the query itself rather than code unless
it involves user sorting a subset of data shown in UI, at that point i would use it in code.
My Website: [
] Cool your mind:[
] My Sally:[
I agree. Here's the link:
subject: Usage of Collection classes sorting mechanism in a project
Collection important notes
User class in class diagram
Class Design: Advise
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014