-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminAndCustomerOperation.java
More file actions
31 lines (25 loc) · 1.14 KB
/
Copy pathAdminAndCustomerOperation.java
File metadata and controls
31 lines (25 loc) · 1.14 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
import java.util.ArrayList;
import java.util.Scanner;
public class AdminAndCustomerOperation {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
boolean mainMenuRunning = true;
int currentTicketCount = 0;
boolean createTicket = true;
//Creating ArrayList
ArrayList<String> mainMenuOption = new ArrayList<>();
System.out.println("Please Select from the Options: \n 1. Customer Operations \n 2. Admin Operations \n 3. Exit");
int userChoice = Integer.parseInt(scanner.nextLine());
//using switch condition for the main menu
switch (userChoice) {
case 1:
System.out.println("### Customer Operations\n Options:\n 1. Create Ticket\n 2. Back to Main Menu");
break;
case 2:
System.out.println("### Admin Operations\n Options:\n 1. View Ticket\n 2. Update Ticket\n 3. Back to Main Menu");
break;
default:
System.out.println("Exiting the application. Goodbye!");
}
}
}