Skip to content

Commit c228346

Browse files
chore: formatting
1 parent 8f25b09 commit c228346

File tree

1 file changed

+7
-10
lines changed
  • lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/nintendoswitch

1 file changed

+7
-10
lines changed

lesson_16/objects/objects_app/src/main/java/com/codedifferently/lesson16/nintendoswitch/nintendo.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public enum Model {
1919
/**
2020
* Constructs a Nintendo Switch object with the specified attributes.
2121
*
22-
* @param serialNumber serial number of the device
23-
* @param model the model type of the Nintendo Switch
24-
* @param isDocked indicates if the device is currently docked
25-
* @param batteryLife current battery life in hours
22+
* @param serialNumber serial number of the device
23+
* @param model the model type of the Nintendo Switch
24+
* @param isDocked indicates if the device is currently docked
25+
* @param batteryLife current battery life in hours
2626
* @param installedGames list of games currently installed on the device
2727
*/
2828
public nintendo(
@@ -44,10 +44,9 @@ public InvalidBatteryException(String message) {
4444
}
4545
}
4646

47-
4847
/**
49-
* Checks the current battery status of the Nintendo Switch.
50-
* If the battery life is negative, it throws an InvalidBatteryException.
48+
* Checks the current battery status of the Nintendo Switch. If the battery life is negative, it
49+
* throws an InvalidBatteryException.
5150
*
5251
* @throws InvalidBatteryException if battery life is less than 0
5352
*/
@@ -68,9 +67,7 @@ public void installGame(String game) {
6867
System.out.println(game + " has been added to your Nintendo Switch.");
6968
}
7069

71-
/**
72-
* Displays all the games currently installed on the Nintendo Switch.
73-
*/
70+
/** Displays all the games currently installed on the Nintendo Switch. */
7471
public void displayInstalledGames() {
7572
System.out.println("Installed games on the Nintendo Switch:");
7673
/** Using a normal for loop to iterate over installed games */

0 commit comments

Comments
 (0)