-
Notifications
You must be signed in to change notification settings - Fork 24
/
menu.java
93 lines (82 loc) · 3.59 KB
/
menu.java
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import java.util.Scanner;
public class menu {
public static void main(String[] args) {
char Menu;
String temp = "";
String printmenu = "\nApplication Menu\n\n1 - Address Book App\n2 - Calculator App\n3 - Contact Book App\n4 - File Encryption App\n5 - Guess Game App\n6 - Hang Man App\n7 - Library Management System App\n8 - Quiz Application App\n9 - Bank Account Management System App\nA - Student Grade Calculator App\nB - Temperature Converter App\nC - TicTacToe App\nD - To Do List App\nE - Exit";
AddressBook addressBook = new AddressBook();
Calculator calculator = new Calculator();
ContactBookProgram contactBook = new ContactBookProgram();
FileEncryptionDecryption fileEncryptionDecryption = new FileEncryptionDecryption();
GuessGame guessGame = new GuessGame();
HangmanGame hangmanGame = new HangmanGame();
LibraryManagementSystem libraryManagementSystem = new LibraryManagementSystem();
QuizApplication quizApplication = new QuizApplication();
BankAccountManagementSystem bankAccountManagementSystem = new BankAccountManagementSystem();
StudentGradeCalculator studentGradeCalculator = new StudentGradeCalculator();
TemperatureConverter temperatureConverter = new TemperatureConverter();
TicTacToe ticTacToe = new TicTacToe();
//TodoListApp todoListApp = new TodoListApp();
boolean quit = false;
while (!quit)
{
Menu = ' ';
Scanner input = new Scanner(System.in);
System.out.println(printmenu);
System.out.print("\nEnter your choice: ");
if(input.hasNext())
{
temp = input.next();
Menu = temp.charAt(0);
input.nextLine();
}
switch (Menu) {
case '1':
addressBook.RunAddressBook(args);
break;
case '2':
calculator.RunCalculator(args);
break;
case '3':
//input.close();
contactBook.RunContactBook(args);
break;
case '4':
fileEncryptionDecryption.RunFileEncryptionDecryption(args);
break;
case '5':
//input.close();
guessGame.RunGuessGame(args);
break;
case '6':
hangmanGame.play();
break;
case '7':
libraryManagementSystem.RunLibraryManagementSystem(args);
break;
case '8':
quizApplication.RunQuizApplication(args);
break;
case '9':
bankAccountManagementSystem.RunBankAccountManagementSystem(args);
break;
case 'A':
studentGradeCalculator.RunStudentGradeCalculator(args);
break;
case 'B':
temperatureConverter.RunTemperatureConverter(args);
break;
case 'C':
ticTacToe.RunTicTacToe(args);
break;
case 'D':
TodoListApp.RunTodoListApp(args);
break;
case 'E':
input.close();
quit = true;
break;
}
}
}
}