This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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!