Skip to content

Commit 2431eb5

Browse files
committed
chore: fixed final test
1 parent 38c5323 commit 2431eb5

File tree

1 file changed

+11
-8
lines changed
  • lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/KimberleeObject

1 file changed

+11
-8
lines changed

lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/KimberleeObject/HeadPhones.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ public class HeadPhones {
1111
private String brands = "Beats";
1212
boolean isPreferredBrand = BrandUtils.isPreferredBrand(brands);
1313
private boolean isConnectedToBluetooth = false;
14+
15+
public enum BoostMode {
16+
BASS_BOOST,
17+
VOCAL_BOOST,
18+
TREBLE_BOOST;
19+
}
20+
1421
private BoostMode currentMode;
1522
private BoostMode[] modes = BoostMode.values();
1623
private int currentModeIndex = 0;
1724

18-
public void HeadPhones() {
25+
public HeadPhones() {
1926
this.currentMode = BoostMode.BASS_BOOST;
2027
System.out.println("Constructor called: currentMode set to " + currentMode);
2128
}
@@ -48,11 +55,7 @@ public void BrandsArray() {
4855
brands[4] = "Juicy";
4956
}
5057

51-
public enum BoostMode {
52-
BASS_BOOST,
53-
VOCAL_BOOST,
54-
TREBLE_BOOST;
55-
}
58+
5659

5760
public int getVolume() {
5861
return volume;
@@ -70,8 +73,8 @@ public boolean isWireless() {
7073
return isWireless;
7174
}
7275

73-
public String getBrandsArray() {
74-
return brands;
76+
public String[] getBrandsArray() {
77+
return BrandUtils.PREFERRED_BRANDS;
7578
}
7679

7780
public void turnOn() {

0 commit comments

Comments
 (0)