On Feb 12, 1:56 am, [email protected] wrote:
> I get an exception when try to run the code... I thought it could be my  
> mistake when typing but when I copy and past the code it does not work!
> the Exception:
> run:
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
> at listarraylistdeal.Deal.main(Deal.java:7)
> Java Result: 1
> BUILD SUCCESSFUL (total time: 3 seconds
> Can you help me??/
Notice at the top of the Deal class that arguments are read:
        int numHands = Integer.parseInt(args[0]);
        int cardsPerHand = Integer.parseInt(args[1]);
They should be supplied at Runtime.
To do so, right-click the project, select Properties, in the Run
Categories, enter two positive non nul integers in the Arguments
field, click OK.
Run the project again.

-- 
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

Reply via email to