?? hand.java
字號:
// Class defining a hand of cards
import java.util.*;
class Hand
{
public void add(Card card)
{
hand.push(card);
}
public String toString()
{
Iterator cards = hand.iterator();
StringBuffer str = new StringBuffer();
while(cards.hasNext())
str.append(" "+ (Card)cards.next());
return str.toString();
}
private Stack hand = new Stack(); // Stores the cards in the hand
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -