-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
65 lines (35 loc) · 1.19 KB
/
Copy pathMain.java
File metadata and controls
65 lines (35 loc) · 1.19 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.company;
import java.util.ArrayList;
import java.util.Scanner;
import static com.company.Administrator.*;
public class Main {
public static void main(String[] args) {
Administrator adm = new Administrator();
adm.displayWelcomeMessage();
adm.enrollStudent();
adm.addAnotherStudentMessage();
adm.listAllStudent();
/*
Scanner myObj = new Scanner(System.in);
ArrayList<StudentData> student = new ArrayList<>();
for (int i = 0; i < student.size(); i++) {
StudentData studentX = new StudentData();
studentX.setGradeAssignment();
studentX.setNameOfStudent();
studentX.setGradeExams();
student.add(studentX);
*
}
if (myObj.hasNext("Watch")){
}
// String input
String name = myObj.nextLine();
String gradeAssignment = myObj.nextLine();
String gradeExams = myObj.nextLine();
// Output input by user
System.out.println("Name: " + name);
System.out.println("Assignment Grade: " + gradeAssignment);
System.out.println("Exam Grade: " + gradeExams);
*/
}
}