-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
36 lines (32 loc) · 1 KB
/
Copy pathMain.java
File metadata and controls
36 lines (32 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
35
36
import java.util.Scanner;
public class Main { public static void main(String[] args){
Scanner input = new Scanner(System.in);
int choice=0;
while ( choice != 4) {
System.out.println("Mini ERP System ");
System.out.println("1. Customer");
System.out.println("2. Admin");
System.out.println("3. Support Staff");
System.out.println("4. Exit");
System.out.println("Enter your choice:");
choice= input.nextInt();
if (choice == 1){
System.out.println("Customer section selected.");
}
else if (choice == 2){
System.out.println("Admin section selected.");
}
else if (choice == 3){
System.out.println("Support Staff section selected");
}
else if (choice == 4){
System.out.println("Exiting system");
}
else {
System.out.println("Invalid choice Please try again");
}
System.out.println("");
}
input.close();
}
}