Forums Register Login

Jumble ArrayList

+Pie Number of slices to send: Send
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 !
+Pie Number of slices to send: Send
Collections.shuffle()
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 967 times.
Similar Threads
Array of ArrayLists
what is this?
sorting of data during String Tokenizer method
how to copy the every element in first list to second list
Make HashMap elements fit into an ArrayList
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:46:22.