// // AHF 10/31/2002 // // Poker server communication // // Tell the client what the user's current cards are // import java.util.*; import java.lang.*; class CardsReturnMessage extends ReturnMessage { CardSet cards; public CardsReturnMessage(CardSet hand) { cards = hand; }; void service(PokerClient pk){ // Remember the set of cards pk.hand = cards; // Inform the user of the hand System.out.println("You have been dealt the following hand:"); cards.display(); }; };