-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain_menu.java
More file actions
76 lines (57 loc) · 1.4 KB
/
Main_menu.java
File metadata and controls
76 lines (57 loc) · 1.4 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import java.io.*;
import java.util.*;
class Main_menu extends Headertop // Headertop has function for Utility
{
public static void menu_disp()throws Exception
{
Scanner sc=new Scanner(System.in);
int choice;
clearcls(); //Clears the Screen defined in Headertop headerone(); //Prints beginning title of the Project
graduation_cap(); // Pattern display of graduation cap
longdelay();
longdelay();
System.out.println("\n\n\n");
centeralignmsg("Please Press 'Enter' to continue...");
sc.nextLine();
System.out.println("");
clearcls();
header(); //Prints beginning title of the Project
head("-----------------MAIN MENU------------------");
centeralign("1] I am an Admin,Please log me in");
centeralign("2] I am a User,Please log me in");
centeralign("3] Exit");
do
{
centeralign("Please enter a Valid Choice");
centeralignmsg("");
choice=Integer.parseInt(enterInt());
}while(choice<=0 || choice>3);
clearcls();
switch(choice)
{
case 1:
AdminLogin.login();
break;
case 2:
UserMenu.menu();
break;
case 3:
Headertop.exit();
break;
default:
break;
}
}
public static void main(String args[])
{
Main_menu obj=new Main_menu();
try
{
obj.menu_disp();
}
catch(Exception e)
{
System.out.println(e);
}
}
}