File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/SmartPhone Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -29,23 +29,13 @@ public int getBatteryPercentage() {
2929 return batteryPercentage ;
3030 }
3131
32- public void setSmartPhoneBatteryIncrease (int chargeBatteryAmount ) {
33- // loop
34- }
35-
36- public void chargeSmartPhone () {}
37-
38- public void setSmartPhonePower () {}
39-
4032 public void setSmartPhoneBatteryPercentage (int currentBatteryPercentage ) {
4133 if (currentBatteryPercentage < 0 || currentBatteryPercentage > 100 ) {
4234 throw new IllegalArgumentException ("Battery percentage must be in between 0 and 100." );
4335 }
4436 this .batteryPercentage = currentBatteryPercentage ;
4537 }
4638
47- public void addSmartPhoneApps (String App ) {}
48-
4939 public String getSmartPhoneApps () {
5040 var smartPhoneApps = "" ;
5141 for (String s : apps ) {
@@ -58,10 +48,6 @@ public void removeSmartPhoneApps(String App) {
5848 apps .remove (App );
5949 }
6050
61- public void currentSmartPhoneVolume () {}
62-
63- public void addSmartPhoneVolume () {}
64-
6551 public int getSmartPhoneVolume () {
6652 return 5 ;
6753 }
You can’t perform that action at this time.
0 commit comments