diff --git a/src/main/java/org/example/Student.java b/src/main/java/org/example/Student.java index 0383cc3..64eb6e1 100644 --- a/src/main/java/org/example/Student.java +++ b/src/main/java/org/example/Student.java @@ -40,4 +40,11 @@ public class Student { public void setRole(String role) { this.role = role; } + public void printStudentInfo() + { + System.out.println("Name: " + getStudentName()); + System.out.println("ID: " + getStudentID()); + System.out.println("role: " + getRole()); + } + }