⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admininterface.java

📁 国外的数据结构与算法分析用书
💻 JAVA
字号:
package Interfaces;

/**	The interface for administrative personnel.  Special input operations 
	and error messages that are only valid for administrative personnel. */
public class AdminInterface extends StaffInterface
{
	/**	Obtain the integer that represents the command to be performed. */
	public int getCmdID()
	{
		System.out.println("\nChoose an admin command:");
		System.out.println("11. Balance");
		System.out.println("12. Deposit");
		System.out.println("21. Change line of credit");
		System.out.println("22. Generate month end statements");
		System.out.println("99. Quit");
		System.out.print("Choice: ");
		String temp = readString();
		return Integer.parseInt(temp);
	}

	/**	Obtain the new line of credit. */ 
	public float getNewLoc()
	{
		System.out.print("Enter the new line of credit: ");
		String temp = readString();
		return Float.parseFloat(temp);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -