I have a program for a blackjack game that uses arrays to shuffle cards and deal them to a player and dealer/ I am having a hard time retrieving the card value from one class to another. This is in the hand class which I want to use to retriev the card and then add the value of the cards together
public void gethand()
{
Shoe temp = new Shoe();
temp.getCard();
Deck = temp.Deck;
This is the class that is creating the card from the array
public static String getCard()
{
Index++;
InPlay[Index] = true;
return ShuffleDeck[Index];
}
Any help would be great Thanks.