File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayList

 
MInu
Ranch Hand
Posts: 517
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Keith Lynn
Ranch Hand
Posts: 2399
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic