?? college.java
字號:
package Entities;
import dslib.dictionary.arrayed.ArrayedPKeyedDictUos;
import dslib.list.LinkedListUos;
public class College
{
/** Data Attributes */
protected String name;
public ArrayedPKeyedDictUos students;
protected LinkedListUos departments;
/** Make a college with name 'collegeName' */
public College(String collegeName)
{
name = collegeName;
students = new ArrayedPKeyedDictUos(100);
departments = new LinkedListUos();
}
/** Add student 'newStudent' to the current college. */
public void addStudent(Student newStudent)
{
/** insert student and make a mapping from their
student number to them */
students.insert(new Integer(newStudent.studentNum()), newStudent);
}
/** Add a new department to this college */
public void addDepartment(Department newDepart)
{
departments.insert(newDepart);
}
} /* end of College */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -