int [] deckThree = new int [deck[27]]; //store the first n values in the new array for (int i=0; i