-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject1.java
More file actions
40 lines (27 loc) · 776 Bytes
/
Project1.java
File metadata and controls
40 lines (27 loc) · 776 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
36
37
38
39
40
import java.util.Random;
/*
Cheng Dai
*/
public class Project1 {
static int students = 20;
static int nurse = 1;
static int principle = 1;
static int instructor = 2;
public static long time = System.currentTimeMillis();
public static Monitor m = new Monitor();
public static boolean isSubmit = false;
public static boolean c = true;
public static void main(String[] args){
try {
for(int i = 0; i < students; i++){
new Students(i).start();
}
new Principal(principle).start();
new Nurse(nurse).start();
for(int i = 0; i < instructor; i++){
new Instructor(i).start();
}
}catch(Exception e){
}
}
}