Two Laptop Bag
The moose likes Java in General and the fly likes ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "ArrayList" Watch "ArrayList" New topic
Author

ArrayList

MInu
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
Hi all,

I have two ArrayList,

ArrayList A1 contains some integer values like (01,34,21,08,65).

ArrayList A2 contains some values like (af,ab,fd,ws,vd)

I have to sort both of these ..

How can i do this.?
Can help me............................

Thanks in Advance.


God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
There is a sort method in Collections that lets you sort a collection based on natural order.

There is also a sort method in Collections that lets you specificy a Comparator.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ArrayList
 
Similar Threads
Struts OGNL how to acces vector elements
how to pass the values and how to get the Arraylist table from java script function
How to return an array!
Partitioning a JTable
how to compeer Arraylist contains hashtables by key name