Advertisement
Guest User

Untitled

a guest
May 17th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. class Speciality implements Comparable<Speciality>, CreateGroup {
  2. private String examName;
  3. List<Student> students;
  4.  
  5. public int compareTo(Speciality other) {
  6. return 0;
  7. }
  8.  
  9. public Speciality (String fileName) {
  10. // TODO: read file
  11. }
  12.  
  13. public static void printByGroup(int group) {
  14. for (Student s : this.students) {
  15. if (s.groupNum == group) {
  16. System.out.println(s.toString());
  17. }
  18. }
  19. }
  20.  
  21. public setExamName(String examName) {
  22. this.examName = examName;
  23. }
  24.  
  25. public String toString() {
  26. return examName;
  27. }
  28.  
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement