@@ -19,10 +19,10 @@ public enum Model {
19
19
/**
20
20
* Constructs a Nintendo Switch object with the specified attributes.
21
21
*
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
26
26
* @param installedGames list of games currently installed on the device
27
27
*/
28
28
public nintendo (
@@ -44,10 +44,9 @@ public InvalidBatteryException(String message) {
44
44
}
45
45
}
46
46
47
-
48
47
/**
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.
51
50
*
52
51
* @throws InvalidBatteryException if battery life is less than 0
53
52
*/
@@ -68,9 +67,7 @@ public void installGame(String game) {
68
67
System .out .println (game + " has been added to your Nintendo Switch." );
69
68
}
70
69
71
- /**
72
- * Displays all the games currently installed on the Nintendo Switch.
73
- */
70
+ /** Displays all the games currently installed on the Nintendo Switch. */
74
71
public void displayInstalledGames () {
75
72
System .out .println ("Installed games on the Nintendo Switch:" );
76
73
/** Using a normal for loop to iterate over installed games */
0 commit comments