?? transaction.java
字號:
class Transaction
{
// Transaction types
public static final int DEBIT = 0;
public static final int CREDIT = 1;
public static String[] types = {"Debit","Credit"};
// Constructor
public Transaction(Account account, int transactionType, int amount)
{
this.account = account;
this.transactionType = transactionType;
this.amount = amount;
}
public Account getAccount()
{ return account; }
public int getTransactionType()
{ return transactionType; }
public int getAmount()
{ return amount; }
public String toString()
{
return types[transactionType] + " A//C: " + ": $" + amount;
}
private Account account;
private int amount;
private int transactionType;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -