📄 staffinterface.java
字号:
package Interfaces;
/** This class contains the interface features common to Teller and Admin. */
public class StaffInterface extends Interface
{
/** Obtain the id for an account. */
public int getAcctID()
{
System.out.print("Enter the account number: ");
String temp = readString();
return Integer.parseInt(temp);
}
/** Obtain an amount for a command. */
public float getAmount()
{
System.out.print("Enter the amount: ");
String temp = readString();
return Float.parseFloat(temp);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -