-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNokia3310Menu.java
More file actions
146 lines (105 loc) · 3.01 KB
/
Nokia3310Menu.java
File metadata and controls
146 lines (105 loc) · 3.01 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
import java.util.Scanner;
class Nokia3310Menu{
static void main(String[] args){
Scanner inputCollector = new Scanner(System.in);
String menu = """
WELCOME TO NOKIA - AHMED EDITION
1. phone book
2. Messages
3. Chat
4. Call register
5. Tones
6. Settings
7. call divert
8. Games
9. Calculator
10. Reminders
11. Clock
12. profiles
13.Sim services
""";
System.out.print(mainMenu);
int mainChoice = inputCollector.nextInt();
switch(mainChoice){
case 1 -> {System.out.println("phonebook");
String phonebookMenu = """
Press 1 - To search
Press 2 - To access service Nos
Press 3 - To add name
press 4 - Erase
press 5 - Edit
press 6 - Assign tone
press 7 - Send b'card
press 8- options
press 9- Speed dials
press 10- voice tags
""";
System.out.println(phonebookMenu);
int phonebookChoice = inputCollector.nextInt();
switch(phonebookChoice){
case 1 -> {System.out.print("Search");
case 2 -> {System.out.print("Service numbers");
case 3 -> {System.out.print("Adding new contacts");
case 4 -> {System.out.print("Erasing");
case 5 -> {System.out.print("Edit");
case 6 -> {System.out.print("Assign ringtone");
case 7 -> {System.out.print("business card");
String optionsMenu = """
Press 1 - Type of view
press 2- memory status
""";
System.out.println(optionsMenu);
int optionsChoice = inputCollector.nextInt();
switch(optionsChoice){
case 1 -> System.out.print("view type");
case 2 -> System.out.print("Memory");
}
}
case 9 -> System.out.print("speeddials");
case 10 -> System.out.print("voice ");
default -> System.out.println("option not found");
}
}
case 2 -> {System.out.printf("Messages");
String yorubaMenu = """
1 - write messages
2 - inbox
3 - Outbox
4 - picture messages
5- Templates
6- Smileys
7- Message settings
8- Info service
9- voice mailbox number
10- Service command editor
""";
System.out.println(messageMenu);
int messageMenuChoice = inputCollector.nextInt();
switch(messageChoice){
case 1 -> System.out.println("new message");
case 2 -> System.out.println("inbox");
case 3 -> System.out.print("outbox");
case 4 -> System.out.print("picture messages");
case 5-> System.out.print("Templates");
case 6 -> System.out.print("Smileys");
case 7 -> messageSettingMenu();
case 8-> System.out.println("info service");
case 9-> System.out.println ("voice mail number");
case 10-> System.out.println ("Service command editor");
default -> System.out.println("Invalid option");
}
}
public static void messageSettingMenu() {
String menu = """
message settings
1. set 1
2. common
""";
System.out.print
case 3 -> System.out.printf("Hausa Menu");
case 4 -> System.out.printf("Igbo Menu");
case 5 -> System.out.printf("Pidgin Menu");
default -> System.out.println("Oga, you no go school");
}
}
}