Skip to content

Commit 4e68e64

Browse files
committed
reviewed ch11
1 parent a0150f4 commit 4e68e64

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ch11/Time.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void printTime(Time t) {
4141
*/
4242
public String toString() {
4343
return String.format("%02d:%02d:%04.1f\n",
44-
this.hour, this.minute, this.second);
44+
this.hour, this.minute, this.second);
4545
}
4646

4747
/**
@@ -72,7 +72,6 @@ public Time add(Time t2) {
7272
sum.hour = this.hour + t2.hour;
7373
sum.minute = this.minute + t2.minute;
7474
sum.second = this.second + t2.second;
75-
7675
if (sum.second >= 60.0) {
7776
sum.second -= 60.0;
7877
sum.minute += 1;

0 commit comments

Comments
 (0)