-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCourseMain.java
More file actions
32 lines (23 loc) · 1.03 KB
/
CourseMain.java
File metadata and controls
32 lines (23 loc) · 1.03 KB
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
package Online_Code_Samples.Week2;
public class CourseMain {
public static void main(String[] args) {
Student first = new Student("John", 25, 70);
Student second = new Student("Jane", 27, 70);
Student third = new Student("David", 35, 50);
Student fourth = new Student("Smith", 30, 45);
Student fifth = new Student("Joy", 30, 70);
Student sixth = new Student("Mn", 30, 45);
Course course = new Course("Java", "Software Engineering");
course.addStudent(first);
course.addStudent(second);
course.addStudent(third);
course.addStudent(fourth);
course.addStudent(fifth);
course.addStudent(sixth);
System.out.println(course.classLead(course.getStudents()));
System.out.println("*************************************");
System.out.println(course.getAGradeStudents(course.getStudents()));
System.out.println("*************************************");
course.printStudents(course.getStudents());
}
}