Skip to content

Commit 75ca4b7

Browse files
author
AmiyahJo
committed
feat: adds displayStudents
1 parent d611983 commit 75ca4b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/amiyahjones/JobReadinessProgram.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ public int getStudentCount() {
4444
System.out.println("Total students enrolled: " + count);
4545
return count;
4646
}
47+
48+
public void displayStudents() {
49+
for (String student : students) {
50+
System.out.println(student);
51+
}
52+
}
4753

4854
public String checkReadiness() {
4955
return (readinessLevel == Level.Beginner) ? "Needs more training." : "Ready for job applications!";

0 commit comments

Comments
 (0)