Browse Source

Production-Code for CDPlayer-Method [Louder] produced.

feature-pr-cdPlayerLouderTest
JPANZO 3 years ago
parent
commit
a1d31ab7fc
  1. 8
      src/main/java/device/cdPlayer/CDPlayer.java

8
src/main/java/device/cdPlayer/CDPlayer.java

@ -21,7 +21,11 @@ public class CDPlayer implements Device {
@Override
public void louder() {
if(volume < 100) {
volume += 1;
} else {
volume = 100;
}
}
@Override
@ -31,7 +35,7 @@ public class CDPlayer implements Device {
@Override
public int getVolume() {
return 0;
return this.volume;
}
@Override

Loading…
Cancel
Save