3
3
import java .util .ArrayList ;
4
4
5
5
public class JobReadinessLab {
6
- private int mentorSession ;
7
- private String teacherAssistant , socialSupport , jobTutor ;
6
+ private final int mentorSession ;
7
+ private final String teacherAssistant , socialSupport , jobTutor ;
8
8
private boolean isSuccessful ;
9
9
ArrayList <String > students ;
10
- private level readinessLevel ;
10
+ private final level readinessLevel ;
11
11
12
12
enum level {
13
13
BEGINNER ,
@@ -24,15 +24,49 @@ public JobReadinessLab(String teacherAssistant, int mentorSession){
24
24
readinessLevel = level .BEGINNER ;
25
25
}
26
26
27
- public Boolean verifyisSuccessful () {
28
- if (!isSuccessful ){
29
- System .out .println ("At least you got to know what software engineering is like!" );
27
+ public String checkReadiness () {
28
+ return (readinessLevel == level .INTERMEDIATE ) ? "Ready for job applications!" : "Needs more training." ;
29
+ }
30
+
31
+ public Boolean verifyIsSuccessful () {
32
+ if (isSuccessful ){
33
+ System .out .println ("Congraulations! You made it through your journey!" );
34
+ } else {
35
+ System .out .println ("At least you got to know what software engineering is like!" );
30
36
}
31
37
return isSuccessful ;
32
38
}
33
39
34
40
public int getStudentCount () {
35
- return students .size ();
41
+ int count = students .size ();
42
+ System .out .println ("Total students enrolles: " + count );
43
+ return count ;
44
+ }
45
+
46
+ public void addStudent (String studentName ){
47
+ students .add (studentName );
48
+ }
49
+
50
+ public void printStudents () {
51
+ for (String student : students ) {
52
+ System .out .println (student );
53
+ }
36
54
}
55
+
56
+ public int getMentorSession () {
57
+ return mentorSession ;
58
+ }
59
+
60
+ public String getTeacherAssistant () {
61
+ return teacherAssistant ;
62
+ }
63
+
64
+ public String getSocialSupport () {
65
+ return socialSupport ;
66
+ }
67
+
68
+ public String getJobTutor () {
69
+ return jobTutor ;
70
+ }
37
71
}
38
72
0 commit comments