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

📄 instructorinterface.java

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

import Entities.CourseSection;
import dslib.list.LinkedListUos;

/**	An interface specially designed for an instructor. */
public class InstructorInterface extends UserInterface
{
	/**	constructor */
	public InstructorInterface(){}

	/**	User input 
		Display the instructor menu and get the user's choice. */
	public int getCommandID()
	{
		System.out.println("\n 20. Student's grades ");
		System.out.println(" 21. View a class list");
		System.out.println(" 22. Check section enrollment");
		System.out.println(" 99. Quit");
		return (int)readInput("\n  Enter a choice : ");
	}
	
	/**	Prompt the user for a student number */
	public int getStudentNumber()
	{
		return (int)readInput("\nEnter a student number : ");
	}
	
	/**	Display the enrollment limit for a course section */
	public void showEnrollmentLimit(int num)
	{
		System.out.println("The enrollement limit is :" + num + "\n");
	}

	/**	Display a class list (ie the student's in a course) */
	public void showClassList(LinkedListUos list)
	{
		if (list.isEmpty())
			System.out.println("\nNo Students");
		else
		{
			System.out.println("\nThe current students are : \n");
			showList(list);
		}
	}

} /* end of InstructorInterface */

⌨️ 快捷键说明

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