-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathParameter.java
More file actions
39 lines (35 loc) · 1.32 KB
/
Parameter.java
File metadata and controls
39 lines (35 loc) · 1.32 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
package me.smartstore.menu;
import me.smartstore.customer.Customers;
import me.smartstore.exception.InvalidInputExcetion;
import me.smartstore.parameter.SetParameter;
import me.smartstore.parameter.UpdateParameter;
import me.smartstore.parameter.ViewParameter;
import me.smartstore.scanner.Scan;
public class Parameter {
public static void parameterMenu(){
System.out.println("==============================\n" +
" 1. Set Parameter\n" +
" 2. View Parameter\n" +
" 3. Update Parameter\n" +
" 4. Back\n" +
"==============================\n");
System.out.print("Choose One: ");
String in = Scan.getInstance().nextLine();
if(in.equals("1")){
SetParameter.setParameterMethod();
}else if(in.equals("2")){
ViewParameter.viewParameterMethod();
}else if(in.equals("3")){
UpdateParameter.updateParameterMethod();
}else if(in.equals("4")){
Lobby.lobbyMenuUI();
}else{
try {
throw new InvalidInputExcetion();
} catch (InvalidInputExcetion e) {
System.out.println(e.getMessage());
parameterMenu();
}
}
}
}