-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdmin.java
More file actions
31 lines (25 loc) · 738 Bytes
/
Admin.java
File metadata and controls
31 lines (25 loc) · 738 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
import java.util.LinkedList;
public class Admin {
private static Admin onlyAdmin;
private String username ="";
private String pw="";
private Admin(String u, String p){
username = u;
pw = p;
}
public static Admin getOnlyAdmin(){
if (onlyAdmin==null){
onlyAdmin= new Admin("smsm", "480");
}
return onlyAdmin;
}
public String getUsername(){
return username;
}
public String getPW(){
return pw;
}
void addMovie( String Theatre, String Movie, String dateM, String dayM, String timeM, String seats, boolean exclusive){
MovieAppMain.addMovie( Theatre, Movie, dateM, dayM, timeM, seats, exclusive);
}
}