-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
20 lines (15 loc) · 904 Bytes
/
Copy pathMain.java
File metadata and controls
20 lines (15 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import model.Student;
import model.GenderTypes;
public class Main {
public static void main (String[] args) {
Student regularStudent;
Student topStudent;
regularStudent = new Student("Henry", 18, GenderTypes.MALE, "ST323123");
topStudent = new Student( "Ellie", 17, GenderTypes.FEMALE, "ST123678");
System.out.println("my name is " + regularStudent.getName() + ", a " + regularStudent.getGender());
System.out.println("age is " + regularStudent.getAge() + " and my IDNo is " + regularStudent.getIdNo() + "\n");
System.out.println("and my name is " + topStudent.getName() + ", a " + topStudent.getGender());
System.out.println("age is " + topStudent.getAge() + " and my IDNo is " + topStudent.getIdNo() + "\n");
System.out.println("our ages combined is in total " + (regularStudent.getAge() + topStudent.getAge()));
}
}