int [] deckThree = new int [deck[27]];
//store the first n values in the new array
for (int i=0; i<deck[27]; i++){
int indexThree =0;
deckThree[indexThree]= deck[i];
System.out.print(deckThree[indexThree] + " ");
indexThree++;
}
System.out.println("the length of deck three is: "+deckThree.length);
System.out.println("last card is: " +lastCard);
System.out.println();
//move all but the last card up n places in the original array
for (int i=0; i<(deck.length-deck[27]); i++){
deck[i]= deck[i+deck[27]];
System.out.print(deck[i] + " ");
}
System.out.println();
//put the missing n cards back and put the last card back
THEN IDK why its not copying...