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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Jumble ArrayList" Watch "Jumble ArrayList" New topic
Author

Jumble ArrayList

Ambika Jain
Ranch Hand

Joined: Jan 27, 2005
Posts: 48
Hi,

I am having an ArrayList containing 10 elements. I want to jumble to elements in the list everytime I access it. Something like:

[1,2,3,4,5,6,7,8,9,0] should get jumbled up like

[4,5,3,2,6,1,9,8,0,7]

Can you please help me with this ?

Thanks in advance !


Ambika Jain
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Collections.shuffle()
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jumble ArrayList
 
Similar Threads
what is this?
Make HashMap elements fit into an ArrayList
sorting of data during String Tokenizer method
how to copy the every element in first list to second list
Array of ArrayLists