File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/KimberleeObject Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,18 @@ public class HeadPhones {
11
11
private String brands = "Beats" ;
12
12
boolean isPreferredBrand = BrandUtils .isPreferredBrand (brands );
13
13
private boolean isConnectedToBluetooth = false ;
14
+
15
+ public enum BoostMode {
16
+ BASS_BOOST ,
17
+ VOCAL_BOOST ,
18
+ TREBLE_BOOST ;
19
+ }
20
+
14
21
private BoostMode currentMode ;
15
22
private BoostMode [] modes = BoostMode .values ();
16
23
private int currentModeIndex = 0 ;
17
24
18
- public void HeadPhones () {
25
+ public HeadPhones () {
19
26
this .currentMode = BoostMode .BASS_BOOST ;
20
27
System .out .println ("Constructor called: currentMode set to " + currentMode );
21
28
}
@@ -48,11 +55,7 @@ public void BrandsArray() {
48
55
brands [4 ] = "Juicy" ;
49
56
}
50
57
51
- public enum BoostMode {
52
- BASS_BOOST ,
53
- VOCAL_BOOST ,
54
- TREBLE_BOOST ;
55
- }
58
+
56
59
57
60
public int getVolume () {
58
61
return volume ;
@@ -70,8 +73,8 @@ public boolean isWireless() {
70
73
return isWireless ;
71
74
}
72
75
73
- public String getBrandsArray () {
74
- return brands ;
76
+ public String [] getBrandsArray () {
77
+ return BrandUtils . PREFERRED_BRANDS ;
75
78
}
76
79
77
80
public void turnOn () {
You can’t perform that action at this time.
0 commit comments