📄 listopensectionstrans.tex
字号:
\begin{program}
\PACKAGE\ Transactions;\\
\\[\emptyline]
\IMPORT\ Sets.DepartmentSet;\\
\IMPORT\ dslib.list.LinkedListUos;\\
\IMPORT\ Entities.*;\\
\\[\emptyline]
\textrm{/**}\>\textrm{List the section for a specific course that have not}\\
\>\textrm{reached their enrollment limit */}\\
\PUBLIC\ \CLASS\ ListOpenSectionsTrans\\
$\{$\\
\>\PUBLIC\ LinkedListUos openSectionsList;\\
\\[\emptyline]
\>\PUBLIC\ \jVOID\ execute(\INT\ deptNum, \INT\ courseNum)\\
\>$\{$\\
\>\>Course course = DepartmentSet.getCourse(deptNum, courseNum);\\
\>\>\IF\ (course != \NULL)\\
\>\>\>openSectionsList = course.openSections();\\
\>\>\ELSE\\
\>\>\>openSectionsList = \NEW\ LinkedListUos();\\
\>$\}$\\
$\}$\\
\end{program}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -