staffinterface.java
来自「国外的数据结构与算法分析用书」· Java 代码 · 共 22 行
JAVA
22 行
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 + =
减小字号Ctrl + -
显示快捷键?