Advertisement
panaewboi

test 23Oct2019

Oct 23rd, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.55 KB | None | 0 0
  1. public class UniversityTest {
  2.     public static void main(String[] args) {
  3.  
  4.         Student s1 = new Student(61130500001L, "Aaa", "aaa");
  5.         Student s2 = new Student(61130500002L, "Bbb", "bbb");
  6.         Student s3 = new Student(61130500003L, "Ccc", "ccc");
  7.         Student s4 = new Student(61130500004L, "Ddd", "ddd");
  8.         Student s5 = new Student(61130500005L, "Eee", "eee");
  9.         Student s6 = new Student(61130500006L, "Fff", "fff");
  10.         Student s7 = new Student(61130500007L, "Ggg", "ggg");
  11.         Student s8 = new Student(61130500008L, "Hhh", "hhh");
  12.         Student s9 = new Student(61130500009L, "Iii", "iii");
  13.         Student s10 = new Student(61130500010L, "Jjj", "jjj");
  14.        
  15.         System.out.println(s1);
  16.         System.out.println(s2);
  17.         System.out.println(s3);
  18.         System.out.println(s4);
  19.        
  20.         Club c1 = new Club("Billie lover", 4);
  21.         System.out.println(c1);
  22.         System.out.println("\n");
  23.        
  24.         System.out.println("----------ADD STUDENT INTO CLUB----------");
  25.         c1.addStudent(s1);
  26.         System.out.println(c1);
  27.         c1.clubStatus();
  28.         System.out.println("\n");
  29.        
  30.         c1.addStudent(s2);
  31.         System.out.println(c1);
  32.         c1.clubStatus();
  33.         System.out.println("\n");
  34.        
  35.         c1.addStudent(s3);
  36.         System.out.println(c1);
  37.         c1.addStudent(s4);
  38.         System.out.println(c1);
  39.         c1.clubStatus();
  40.         System.out.println("\n");
  41.        
  42.         System.out.println("----------TEST CHANFE FIRSTNAME----------");
  43.         c1.editStudentFirstname("panaew", s1);
  44.         System.out.println(s1);
  45.         System.out.println("\n");
  46.        
  47.         System.out.println("----------TEST CHANGE LASTNAME----------");
  48.         c1.editStudentLastname("gooseboi", s2);
  49.         System.out.println(s2);
  50.         System.out.println("\n");
  51.        
  52.         System.out.println("----------LIST STUDENT INTO THE CLUB----------");
  53.         c1.listStudentInClub();
  54.         c1.clubStatus();
  55.         System.out.println("\n");
  56.        
  57.         System.out.println("----------REMOVE STUDENT FROM THE CLUB----------");
  58.         c1.removeStudent(s1);
  59.         c1.listStudentInClub();
  60.         c1.clubStatus();
  61.         System.out.println("\n");
  62.        
  63.         System.out.println("----------RE-ADD STUDENT INTO THE CLUB----------");
  64.         c1.addStudent(s5);
  65.         c1.listStudentInClub();
  66.         c1.clubStatus();
  67.         System.out.println("\n");
  68.        
  69.        
  70.         System.out.println(c1.searchStudent(s5));
  71.        
  72.     }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement