jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "ArrayList" Watch "ArrayList" New topic


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: 2367
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
It's not a secret anymore!