Array array = new Array(); for ( int i = 0; i < 10; i++ ) array.add( new Integer( i ) ); System.out.println( "array = " + array ); Shuffling.randomShuffle( array ); System.out.println( "after shuffle = " + array );