How are you?
I'm trying to solve Deitel and Deitel exercise 7.30 of chapter 7. I want to modify the example so that it can deal 5 cards instead of one . I cerate an array of 5 cards to be saved in the ArrayList of Card arrays.
I used the loop to iterate 52 times and each time it should save every 5 cards in the hand array and add the array to the ArrayList handList.
am I using correct logic because it keeps giving me ArrayOutOfBoundException error!