listopensectionstrans.java

来自「国外的数据结构与算法分析用书」· Java 代码 · 共 23 行

JAVA
23
字号
package Transactions;

import Sets.DepartmentSet;
import dslib.list.LinkedListUos;
import Entities.*;

/**	List the section for a specific course that have not
	reached their enrollment limit */
public class ListOpenSectionsTrans
{

	public LinkedListUos openSectionsList;
	
	public void execute(int deptNum, int courseNum)
	{
		Course course = DepartmentSet.getCourse(deptNum, courseNum);
		if (course != null)
			openSectionsList = course.openSections();
		else
			openSectionsList = new LinkedListUos();
	}
	
} /* end of ListOpenSectionsTrans  */

⌨️ 快捷键说明

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