Quote (Schwag @ Feb 1 2013 04:12pm)
Unless the Dealer and BlackJack classes are in the same directory/package, you must import the Dealer class after the package declaration in the BlackJack class.
thx, it runs now, but im getting errors for the part of code that adds a card to the player's hand.

in Dealer class:
if(i < 2){
dealPlayer(newCard);
}
else{
dealDealer(newCard);
---------------
public void addDealerCard(Card card){
dealerHand[countDealer] = card;
countDealer++;
System.out.println("Dealers card: " + dealerHand[countDealer].getCard());
}
public void dealDealer(Card card){
dealer.addDealerCard(card);
}
public void dealPlayer(Card card){
player.addPlayerCard(card);
}
--------------------------
in Player class:
Card[] playerHand = new Card[2];
int count = 0;
//method to add a card to the player's hand
public void addPlayerCard(Card card){
playerHand[count] = card;
count++;
-----------------------------
help is very appreciated, i donate fg
This post was edited by shinigamiapple777 on Feb 1 2013 10:07pm