Quick routine to mix up the items in an array
public Object[] MixUpArray(Object inarray[])
{
// get the size of the array
int iSize = inarray.length;
// create an array the same size as the input array
Object outarray[] = new Object[iSize];
// Convert the array to a Vector
Vector<Object> temparray = new Vector<Object>();
// Copy the [...]
Java: Mix up items in array
May 20th, 2008 · 2 Comments
Tags: Code