-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.java
More file actions
28 lines (23 loc) · 803 Bytes
/
Copy pathStudent.java
File metadata and controls
28 lines (23 loc) · 803 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
public class Student {
String reg_no;
String student_full_name;
String courseList[];
public void getStudentInfo() {
System.out.print("REG NO: " + reg_no);
System.out.print("Name: " + student_full_name);
System.out.println();
}
// methi
public void registerCourse() {
System.out.println("Your course has been added to your course list!");
}
public void dropRegisterCourse() {
System.out.println("This course has now been removed from your course list!");
}
public void viewRegisterCourses() {
System.out.print("ICS 215: Object Oriented Programming");
System.out.print("ICS 217: Digital Electronics");
System.out.print("ICS 231: Computer Architecture");
System.out.println();
}
}