Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

sort an arraylist

 
fab etore
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
i would like to know, how can i sort an arraylist.
My arraylist is composed of object with 3 attributes. And i wan't to sort this arraylist by one of this attribute.
I don't know if i have to cast my arraylist in an other , and in which one.
Thanks a lot.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi fab
please have a look at my reply for the same question you posted on "intermediate" forum....
regards
maulin
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's continue this conversation in the intermediate forum. In the future, please don't post the same question in multiple forums. It makes following a conversation difficult.
I'm closing this thread...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic