Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing elements in an object

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I have an Stack object a hand that has 5 cards. I was wondering how I can remove one card at a time.
class TryDeal
{
public static void main(String[] args)
{
CardDeck deck = new CardDeck();
deck.shuffle();

Hand myHand = deck.dealHand(5);
Hand yourHand = deck.dealHand(5);
}
}


Thanks in advance........gemann

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top