Search:

Type: Posts; User: Darkzama

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    1,119

    Re: Shuffling a deck

    Okay... so, I reduced the random int to 9... and I still got the same error, but on the line above where it was before... and I mean to shuffle the deck....
    *edit*
    I got it.. thanks very much...
  2. Replies
    7
    Views
    1,119

    Re: Shuffling a deck

    it says "Java.lang.ArrayIndexOutofboundsexcetion: ## (the number changes each time it's run)
    at hand.shuffleDeck (hand.java:52)
    at Dealer.<init>(Dealer.java:11)
    at Driver.Main(Driver.java:3)
    ...
  3. Replies
    7
    Views
    1,119

    Re: Shuffling a deck

    It compiles, but when I run the Driver, it gives me an array exception...
    2127

    there's a screen shot of my error
  4. Replies
    7
    Views
    1,119

    Shuffling a deck

    So I have all this made.. and I need to shuffle the deck, but it's not working and it's getting on my nerves...




    import java.util.*;

    class Hand {
    static Card[] deck = new Card[52];...
Results 1 to 4 of 4