-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainApp.java
More file actions
34 lines (29 loc) · 1 KB
/
Copy pathMainApp.java
File metadata and controls
34 lines (29 loc) · 1 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
package assignment2002;
import assignment2002.application.ApplicationService;
import assignment2002.user.User;
import assignment2002.user.UserService;
import assignment2002.utils.Data;
import assignment2002.utils.LoadInfo;
public class MainApp {
public static void main(String[] args) {
User user;
ApplicationService.loadApplications(Data.userList, Data.btoList);
while (true) {
try{
LoadInfo.autoCloseExpiredProjects();
user = UserService.loginPrompt();
if (user == null) {
System.out.println("Unable to authenticate user!");
continue;
}
user.viewMenu();
} catch(IllegalArgumentException e){
System.out.println("Error: " + e.getMessage());
continue;
} catch (Exception e){
System.out.println("Error: " + e.getMessage());
continue;
}
}
}
}