File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes sort an arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

sort an arraylist

fab etore
Greenhorn

Joined: Jul 01, 2002
Posts: 9
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

Joined: Nov 04, 2001
Posts: 1871
hi fab
please have a look at my reply for the same question you posted on "intermediate" forum....
regards
maulin
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sort an arraylist
 
Similar Threads
sort an arraylist
Urgent!! How to sort an ArrayList of HashtableSorting
ArrayList Sorting Using Comparator? Exception at Runtime
sorting arraylist of arraylist
sorting a 2d arraylist