📄 setsectionlimittrans.java
字号:
package Transactions;
import Sets.DepartmentSet;
import Entities.*;
/** Set the limit for ALL sections of a certain course */
public class SetSectionLimitTrans
{
public void execute(CallNum callN, int limit)
{
CourseSection sec = DepartmentSet.getCourseSection(callN);
if (DepartmentSet.rep.itemExists() && (sec != null))
sec.setLimit(limit);
}
} /* end of SetSectionLimitTrans */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -