-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTones.java
More file actions
94 lines (91 loc) · 3.29 KB
/
Tones.java
File metadata and controls
94 lines (91 loc) · 3.29 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
package Practice.Phone;
import java.util.Scanner;
import static Practice.Phone.MainMenu.phone;
public class Tones {
static Scanner key = new Scanner(System.in);
static int n;
static int b;
public static void tones() {
System.out.println("""
...Tones
1. Ringing tone
2. Ringing volume
3. Incoming call alert
4. Composer
5. Message alert tone
6. Keypad tones
7. Warning and game tones
8. Vibrating alert
9. Screen saver
99. Main menu
""");
n = key.nextInt();
switch (n) {
case 1:
System.out.println("""
___ringing tone___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 2:
System.out.println("""
___ringing volume___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 3:
System.out.println("""
___incoming call alert___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 4:
System.out.println("""
___composer__
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 5:
System.out.println("""
___message alert tone___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 6:
System.out.println("""
___keypad tones___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 7:
System.out.println("""
___warning and game tones___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 8:
System.out.println("""
___vibrating alert___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 9:
System.out.println("""
___screen saver___
0. back""");
b = key.nextInt();
if (b == 0) { tones(); }
else { System.out.println("option does not exist"); phone(); }
case 99: phone();
default: System.out.println("invalid number"); tones();
}
}
}