-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (16 loc) · 810 Bytes
/
Main.java
File metadata and controls
35 lines (16 loc) · 810 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
35
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
ArrayList<Student> roster = new ArrayList<>();
Student student1 = new Student("Student", "Jordan", "Smith","jsmith@university.com", 2,3.8);
student1.getSummary();
Student student2 = new Student("Student", "Marcus", "Brown", "mbrown@university.com", 1, 2.9);
student2.getSummary();
Instructor instructor = new Instructor("Instructor","Dr.", "Rivera","drrivera@university.com","Computer Science");
System.out.println("\n" + instructor.getFirstName() + " " + instructor.getLastName() + " 's Roster: " );
roster.add(student1);
roster.add(student2);
instructor.listPersons(roster);
instructor.getSummary();
}
}