Advertisement
Swampert420

MainClass

Aug 14th, 2022 (edited)
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | Source Code | 0 0
  1. package pack4;
  2.  
  3. import pack3.Student;
  4. import pack2.Subject;
  5.  
  6. public class MainClass {
  7.  
  8.     public static void main(String[] args) {
  9.         Student st = new Student(2, 3, 2);
  10.         System.out.println(st.getId());
  11.         System.out.println(st.getSubjectId());
  12. //        int subjectId = st.getSubjectId();
  13. //        System.out.println(Subject.getSubject(subjectId));
  14.         System.out.println(Subject.getSubject(st.getSubjectId()));
  15.     }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement