Tag: java array import

Java Shuffle Array shuffle()

September 21, 2011 · 3 min read
Java [collections framework](http://way2java.com/collections/java-collections-framework/) comes with two classes [Collections](http://way2java.com/collections/collections-api-methods/) and [Arrays](http://way2java.com/collections/class-arrays-api-methods/) (from java.util) to operate on the elements of collection classes (data structures) and arrays. To shuffle the elements of a data structure, the Collections class includes a method **shuffle()** but [Arrays class](http://way2java.com/collections/class-arrays-api-methods/) does not come with one.