Tag: list to array

List to Array Java

June 4, 2013 · 2 min read
##### Sometimes, in every programming language, it is required to **convert DS elements into a string array**. This can be done in Java very easily (it is time to prove that Java is simple to practice). Let is see an example on List to Array.

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.