Quote (carteblanche @ Nov 28 2012 06:38pm)
i dont see the println anywhere. i'm guessing you're doing something like this:
DeckOfCards deck = new DeckOfCards();
System.out.println(deck[1]);
in this case, deck is of type DeckOfCards which clearly isn't an array. you can do deck[1] inside the DeckOfCards class just fine.
to fix it, add a get(i) method inside DeckOfCards and call deck.get(1)
ps: dont use variables named a, b. use rank, suit instead
Thank-you very much for the quick response and critique I'll fix'er up.