SL8R.co.uk - Code Zone

Code, Code and Code

SL8R.co.uk - Code Zone header image 4

Java: Mix up items in array

May 20th, 2008 · 2 Comments

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 [...]

[Read more →]

Tags: Code