import java.util.EnumMap; import java.util.Map.Entry; public class TableHand extends Hand { private EnumMap sevensTableHand = new EnumMap(Suits.class); public TableHand() { for (Suits suit : Suits.values()) { sevensTableHand.put(suit, new Hand()); } } public void display(String text) { System.out.println("\n" + text); for (Entry hand : sevensTableHand.entrySet()) { System.out.println(hand.getKey() + ": " + hand.getValue().toString()); } } public EnumMap getSevensTableHand() { return sevensTableHand; } public void setSevensTableHand(EnumMap sevensTableHand) { this.sevensTableHand = sevensTableHand; } }