We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0150f4 commit 4e68e64Copy full SHA for 4e68e64
1 file changed
ch11/Time.java
@@ -41,7 +41,7 @@ public static void printTime(Time t) {
41
*/
42
public String toString() {
43
return String.format("%02d:%02d:%04.1f\n",
44
- this.hour, this.minute, this.second);
+ this.hour, this.minute, this.second);
45
}
46
47
/**
@@ -72,7 +72,6 @@ public Time add(Time t2) {
72
sum.hour = this.hour + t2.hour;
73
sum.minute = this.minute + t2.minute;
74
sum.second = this.second + t2.second;
75
-
76
if (sum.second >= 60.0) {
77
sum.second -= 60.0;
78
sum.minute += 1;
0 commit comments