Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Speciality implements Comparable<Speciality>, CreateGroup {
- private String examName;
- List<Student> students;
- public int compareTo(Speciality other) {
- return 0;
- }
- public Speciality (String fileName) {
- // TODO: read file
- }
- public static void printByGroup(int group) {
- for (Student s : this.students) {
- if (s.groupNum == group) {
- System.out.println(s.toString());
- }
- }
- }
- public setExamName(String examName) {
- this.examName = examName;
- }
- public String toString() {
- return examName;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement