-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNokiaTwo.java
More file actions
470 lines (372 loc) · 9.93 KB
/
Copy pathNokiaTwo.java
File metadata and controls
470 lines (372 loc) · 9.93 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
import java.util.Scanner;
public class Nokia{
public static void main(String [] args){
Scanner input = new Scanner(System.in);
int userinput = 100;
while (userinput != 0){
String Prompt = """
Nokia 3310 mobile phone
1 -> Phonebook
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 sevices
""";
System.out.println(Prompt);
userinput = input.nextInt();
switch(userinput){
case 1->{
String Phonebook = """
PHONEBOOK
1->Search
2->Service Nos.
3->Add name
4->Erase
5->Edit
6->Assign tone
7->Send b'card
8->Options
9->Speed dial
10->Voice tags
""";
System.out.println(Phonebook);
int phonebookinput = input.nextInt();
switch(phonebookinput){
case 1->System.out.println("Enter Search");
case 2->System.out.println("Enter Service Nos");
case 3->System.out.println("Enter Add name");
case 4->System.out.println("Enter Erase");
case 5->System.out.println("Enter Edit");
case 6->System.out.println("Enter Assign tone");
case 7->System.out.println("Enter Send b'card");
case 8->{
String option = """
OPTIONS
1->Types of view
2->Memory Status
""";
System.out.print(option);
int optioninput = input.nextInt();
switch(optioninput){
case 1->System.out.println("Enter types of view");
case 2->System.out.println("Enter Memory Status");
default ->System.out.print("You entered number");
}
}
case 9-> System.out.println("Speed dials");
case 10-> System.out.println("Voice tags");
default ->System.out.print("You entered number");
}
}
case 2->{
int Message = 100;
while(Message != 0){
String Messages = """
1-> Write messages
2-> Inbox
3-> Outbox
4-> Picture messages
5-> Templates
6-> Smileys
7-> Message settings
8-> info services
9-> Voice mailbox number
10-> Service command editor
0->Exit
""";
System.out.println(Messages);
Message = input.nextInt();
switch(Message){
case 1-> System.out.println("write messages");
case 2-> System.out.println("Enter inbox messages");
case 3-> System.out.println("Enter outbox messages");
case 4-> System.out.println("Pictures messages");
case 5-> System.out.println("Templates");
case 6-> System.out.println("Smileys");
case 7->{String messagessettings ="""
1-> set
2-> common
""";
System.out.println(messagessettings);
int messageinput = input.nextInt();
switch(messageinput){
case 1->{
int setinput = 100;
while(setinput != 0){
String set = """
1->Message center number
2->Message sent as
3->Message validity
0->Exit
""";
System.out.println(set);
setinput = input.nextInt();
switch(setinput){
case 1->System.out.println("Messages center number");
case 2->System.out.println("Messages sent as in");
case 3->System.out.println("Message validity");
case 0->System.out.println("Exit");
default ->System.out.print("You entered number");
}
}
}
case 2->{
int commoninput = 100;
while(commoninput != 0){
String common = """
1->Delivery reports
2->Reply via same center
3->Character suppot
0->Exit
""";
System.out.println(common);
commoninput = input.nextInt();
switch(commoninput){
case 1->System.out.println("Delivery reports");
case 2->System.out.println("Reply via same center");
case 3->System.out.println("Character support");
case 0->System.out.println("Exit");
default ->System.out.print("You entered number");
}
}
}
case 8->System.out.println("info service");
case 9->System.out.println("Voice mailbox number");
case 10->System.out.println("Service command editor");
default ->System.out.print("You entered number");
}
}
}
}
}
case 3->System.out.println("Enter Chat");
case 4->{
int callinput = 100;
while(callinput != 0){
String Callregister = """
1-> Missed calls
2-> Recieved calls
3-> Dialed numbers
4-> Erase recent calls list
5-> Show call duration
6-> Show call costs
7-> Call cost settings
8-> Prepaid credit
0->Exit
""";
System.out.println(Callregister);
callinput = input.nextInt();
switch(callinput){
case 1->System.out.println("Enter Missed calls");
case 2->System.out.println("Enter Recieved calls");
case 3->System.out.println("Enter Dialed numbers ");
case 4->System.out.println("Enter Erase recent call lists");
case 5->{
String Showcallduration = """
1->Last call duration
2->All call duration
3->Recieved calls duration
4->Dialed call's duration
5->clear timers
0->Exit
""";
System.out.print(Showcallduration);
int durationinput = input.nextInt();
switch(durationinput){
case 1->System.out.println("Enter Last call duration");
case 2->System.out.println("Enter All call duration");
case 3->System.out.println("Enter Recieved call duration");
case 4->System.out.println("Enter Dialed call's duration");
case 5->System.out.println("Enter Clear timers");
default ->System.out.print("You entered number");
}
}
case 6->{String Showcallcosts = """
1->Last call cost
2->All call's costs
3->Clear counters
0->Exit
""";
System.out.print(Showcallcosts);
int costinput = input.nextInt();
switch(costinput){
case 1->System.out.println("Enter Last call cost");
case 2->System.out.println("Enter All call's cost");
case 3->System.out.println("Enter Clear counters");
default ->System.out.print("You entered number");
}
}
case 7->{String Callcostsettings = """
1->Call cost limit
2->show costs in
0->Exit
""";
System.out.print(Callcostsettings);
int limitinput= input.nextInt();
switch(limitinput){
case 1->System.out.println("Enter Call cost limit");
case 2->System.out.println("Enter Show costs in");
default ->System.out.print("You entered number");
}
}
case 8->System.out.println("Prepaid credit");
}
}
}
case 5->{
int tonesinput = 100;
while(tonesinput != 0){
String Tones = """
1-> Ringing tone
2-> Ringing volume
3-> Incoming call alert
4-> Composer
5-> Message alert tone
6-> Keypad tones
7-> Warning and games tones
8-> Vibrating alert
9-> Screen saver
0->Exit
""";
System.out.println(Tones);
tonesinput = input.nextInt();
switch(tonesinput){
case 1->System.out.println("Enter Ringing tones");
case 2->System.out.println("Enter Ringing Volume");
case 3->System.out.println("Enter Incoming call alert");
case 4->System.out.println("Enter Composer");
case 5->System.out.println("Enter Message alert tone");
case 6->System.out.println("Enter Keypad tones");
case 7->System.out.println("Enter Warning and games tones");
case 8->System.out.println("Enter vibrating alert");
case 9->System.out.println("Enter Screen saver ");
default ->System.out.print("You entered number");
}
}
}
case 6->{
int setinput = 100;
while(setinput != 0){
String Settings = """
1-> call settings
2-> phone settings
3-> Security settings
4-> Restore factory settings
0-> Exit
""";
System.out.println(Settings);
setinput = input.nextInt();
switch(setinput){
case 1->{
String Callsettings = """
1->Automatic redial
2->Speed dialing
3->Call waiting options
4->Own number sending
5->Phone line in use
6->Automatic answer
""";
System.out.print(Callsettings);
int dialinput = input.nextInt();
switch(dialinput){
case 1->System.out.println("Enter Automatic redial");
case 2->System.out.println("Enter Speed dialing");
case 3->System.out.println("Enter Call waiting options");
case 4->System.out.println("Enter Own number sending");
case 5->System.out.println("Enter Phone line in use");
case 6->System.out.println("Enter Automatic answer");
default ->System.out.print("You entered number");
}
}
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);
int phoneinput = input.nextInt();
switch(phoneinput){
case 1->System.out.println("Enter Language");
case 2->System.out.println("Enter Cell info display");
case 3->System.out.println("Enter Welcome note");
case 4->System.out.println("Enter Network selection");
case 5->System.out.println("Enter Lights");
case 6->System.out.println("Enter Confirm SIM service actions");
default ->System.out.print("You entered number");
}
}
case 3->{
String Securitysettings = """
1->PIN code request
2->Call barring service
3->Fixed dialing
4->Closed user group
5->Phone security
6->Change access codes
""";
System.out.print(Securitysettings);
int securityinput = input.nextInt();
switch(securityinput){
case 1->System.out.println("Enter PIN code request");
case 2->System.out.println("Enter Call barring sevice ");
case 3->System.out.println("Enter Fixed dialing");
case 4->System.out.println("Enter Closed user group");
case 5->System.out.println("Enter Phone security");
case 6->System.out.println("Enter Change access codes");
default->System.out.println("You entered number");
}
}
case 4->System.out.print("Enter factory settings");
case 0-> System.out.print("Good Bye fam");
default->System.out.print("You entered number");
}
}
}
case 7->System.out.println("Call divert");
case 8->System.out.println("Games");
case 9->System.out.println("Calculator");
case 10->System.out.println("Reminders");
case 11->{
int clockinput = 100;
while(clockinput != 0){
String Clock = """
1-> Alarm clock
2-> Clock settings
3-> Date settings
4-> Stopwatch
5-> Countdown timer
6-> Auto update of data and timer
""";
System.out.println(Clock);
clockinput = input.nextInt();
switch(clockinput){
case 1->System.out.println("Enter Alarm clock");
case 2->System.out.println("Enter Clock settings");
case 3->System.out.println("Enter Date settings");
case 4->System.out.println("Enter Stopwatch");
case 5->System.out.println("Enter Countdown timer");
case 6->System.out.println("Enter Auto update of data and timer");
default ->System.out.print("You entered number");
}
}
}
case 12->System.out.println("Enter Profiles");
case 13->System.out.println("Enter SIM service");
case 0 -> System.out.println("Good bye fam");
default->System.out.println("You entered a invalid number");
}
}
}
}