From 4d6f2581f7179bf90fd5b1c12f0005d04e6c30ec Mon Sep 17 00:00:00 2001 From: fdai7600 Date: Thu, 8 Feb 2024 17:27:26 +0100 Subject: [PATCH] Added getCourses for the class Student --- src/main/java/org/example/Student.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/example/Student.java b/src/main/java/org/example/Student.java index d22663a..cdedae9 100644 --- a/src/main/java/org/example/Student.java +++ b/src/main/java/org/example/Student.java @@ -55,6 +55,10 @@ public class Student { this.studentRole = studentRole; } + public List getCourses() { + return courses; + } + /** * Prints the basic information of the student in the console. * This methods displays the studentĀ“s ID, name and role, providing a quick overview of the studentĀ“s identity