-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNokia3310.java
More file actions
221 lines (188 loc) · 4.2 KB
/
Copy pathNokia3310.java
File metadata and controls
221 lines (188 loc) · 4.2 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
import java.util.Scanner;
public class Nokia3310{
public static void main(String [] args){
Scanner input = new Scanner(System.in);
String phoneFunctions = """
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(phoneFunctions);
int mainMenuFunctions = input.nextInt();
switch(mainMenuFunctions){
case 1 -> {String phoneBook = """
1 -> Search.
2 -> Service Nos.
3 -> Add Name.
4 -> Erase.
5 -> Edit.
6 -> Assign tone.
7 -> Send b'card.
8 -> Options
9 -> Speed dials
10 -> Voice tags
""";
System.out.print(phoneBook);
int phoneBookFunctions = input.nextInt();
switch(phoneBookFunctions){
case 8 -> {String options = """
1 -> Type of view.
2 -> Memory Status. """;
System.out.print(options); }
}
}
case 2 -> {
String Messages = """
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.print(Messages);
int messagesFunctions = input.nextInt();
switch(messagesFunctions){
case 7 -> {
String messageSettings = """
1 -> Set 1
2 -> Common
""";
System.out.print(messageSettings);
int messageSettingsFunctions = input.nextInt();
switch(messageSettingsFunctions){
case 1 -> {
String set1 = """
1 -> Message centre numner
2 -> Messages sent as
3 -> Message validity
""";
System.out.print(set1);}
case 2 -> {
String common = """
1 -> Delivery reports
2 -> Reply via same centre
3 -> Character support
""";
System.out.print(common);}
}
}}
}
case 4 -> {
String callRegister = """
1 -> Missed calls
2 -> Received calls
3 -> Dialled numbers
4 -> Erace recent call lists
5 -> Show call duration
6 -> Show call costs
7 -> Call cost settings
8 -> Prepaid credit
""";
System.out.print(callRegister);
int callRegisterFunction = input.nextInt();
switch(callRegisterFunction){
case 5 -> {
String showCallDuration = """
1 -> Last call duration
2 -> All calls' duration
3 -> Received call's duration
4 -> Dialled calls' duration
5 -> clear timers
""";
System.out.print(showCallDuration);}
case 6 -> {
String showCallCost = """
1 -> Last call cost
2 -> All call's cost
3 -> Clear counters
""";
System.out.print(showCallCost);}
case 7 -> {
String callCostSettings = """
1 -> Call cost limit
2 -> Show costs in
""";
System.out.print(callCostSettings);}
}}
case 5 -> {
String tones = """
1 -> Ringing tone
2 -> Ringing volume
3 -> Incoming call alert
4 -> Composer
5 -> Message alert tones
6 -> Keypad tones
7 -> Warning and games tones
8 -> Vibrating alert
9 -> Screen saver
""";
System.out.print(tones);}
case 6 -> {
String settings = """
1 -> Call settings
2 -> Phone settings
3 -> Security settings
4 -> Restore factory settings
""";
System.out.print(settings);
int settingsFunctions = input.nextInt();
switch(settingsFunctions){
case 1 -> {
String callSettings = """
1 -> Automatic redial
2 -> Speed dialling
3 -> Call waiting options
4 -> Own number sending
5 -> Phone line in use
6 -> Automatic answer
""";
System.out.print(callSettings);}
case 2 ->{
String phoneSettings = """
1 -> Language
2 -> Cell info display
3 -> Welcome note
4 -> Network selection
5 -> Lights
6 -> Confirm SIM service actions
""";
System.out.print(phoneSettings);}
case 3 -> {
String securitySettings = """
1 -> PIN code request
2 -> Call barring service
3 -> Fixed dialling
4 -> Closed user group
5 -> Phone security
6 -> Change access codes
""";
System.out.print(securitySettings);}
}}
case 11 -> {
String clock = """
1 -> Alarm clock;
2 -> Clock settings
3 -> Date settings
4 -> Stopwatch
5 -> Countdown timer
6 -> Auto update of date and time
""";
System.out.print(clock);}
}
}
}