From 6ad1984302c12d5c6581652b5516260ff17e6ca6 Mon Sep 17 00:00:00 2001 From: fdai7600 <firas.fradi@informatik.hs-fulda.de> Date: Thu, 8 Feb 2024 17:27:57 +0100 Subject: [PATCH] Added Setter for the class Student courses --- 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 cdedae9..70db548 100644 --- a/src/main/java/org/example/Student.java +++ b/src/main/java/org/example/Student.java @@ -59,6 +59,10 @@ public class Student { return courses; } + public void setCourses(List<Course> courses) { + this.courses = 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