aspose 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
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