We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8e489 commit a137737Copy full SHA for a137737
Exercise_10/Exercise_10_01/Time.java
@@ -66,11 +66,11 @@ public void setTime(long elapseTime) {
66
67
if (elapseTime > 0) {
68
totalSeconds = elapseTime / 1000;
69
- second += totalSeconds % 60;
+ second = totalSeconds % 60;
70
totalMinutes = totalSeconds / 60;
71
- minute += totalMinutes % 60;
+ minute = totalMinutes % 60;
72
totalHours = totalMinutes / 60;
73
- hour += totalHours % 24;
+ hour = totalHours % 24;
74
}
75
76
0 commit comments