-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLobby.java
More file actions
43 lines (31 loc) · 1.07 KB
/
Lobby.java
File metadata and controls
43 lines (31 loc) · 1.07 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
package me.smartstore.menu;
import me.smartstore.exception.InvalidInputExcetion;
import me.smartstore.scanner.Scan;
import java.util.Scanner;
public class Lobby {
public static void lobbyMenuUI() {
System.out.println( "==============================\n" +
" 1. Parameter\n" +
" 2. Customer Data\n" +
" 3. Classification Summary\n" +
" 4. Quit\n" +
"==============================");
System.out.print("Choose One: ");
String in = Scan.getInstance().nextLine();
if(in.equals("1")){
Parameter.parameterMenu();
}else if(in.equals("2")){
}else if(in.equals("3")){
}else if(in.equals("4")){// 프로그램 종료
System.exit(0);
}
else{
try {
throw new InvalidInputExcetion();
} catch (InvalidInputExcetion e) {
System.out.println(e.getMessage());
lobbyMenuUI();
}
}
}
}