-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnroll.java
More file actions
34 lines (28 loc) · 961 Bytes
/
Copy pathEnroll.java
File metadata and controls
34 lines (28 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
public class Enroll {
String studID, studName, program, course;
public Enroll() {
studID=null;
studName=null;
program=null;
course=null;
}
public Enroll(String i, String n, String p, String c) {
studID=i;
studName=n;
program=p;
course=c;
}
public void setEnroll(String i, String n, String p, String c) {studID=i; studName=n; program=p; course=c;}
public String getID() {return studID;}
public String getName() {return studName;}
public String getProgram() {return program;}
public String getCourse() {return course;}
public boolean courseCheck() {
if(getCourse().equalsIgnoreCase(" CTU551"))
return true;
return false;
}
public String toString() {
return "Student Name = "+studName+" Student ID = "+studID+"\nProgram code = "+program+" Course code = "+course;
}
}