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...
Type: Posts; User: Darkzama
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...
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)
...
It compiles, but when I run the Driver, it gives me an array exception...
2127
there's a screen shot of my error
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];...