On Apr 23, 1:31 pm, John Joseph <[email protected]> wrote:
> Hi
> I am working on “Java collections Frame Work “ chapter . While I am
> trying out “List-ArrayList-Deal “ I am getting
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
> at listarraylistdeal.Deal.main(Deal.java:7)
You should pass parameters to the project, say 5 6, to get it work
correctly. Study the code, you see that it requires a numHands and a
cardsPerHand which are retrieved from the arguments passed to the
class. Here with 5 6 you will get 5 hands and 6 cards per hand.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---