diff --git a/src/main/java/org/example/Course.java b/src/main/java/org/example/Course.java index f9f668a..2b97004 100644 --- a/src/main/java/org/example/Course.java +++ b/src/main/java/org/example/Course.java @@ -40,4 +40,10 @@ public class Course { public void setCourseCredit(int courseCredit) { this.courseCredit = courseCredit; } + + public void printCourseInfo() { + System.out.println("Course Name: " + courseName); + System.out.println("Course Code: " + courseCode); + System.out.println("Course Credits: " + courseCredit); + } }