Skip to content

Commit

Permalink
Merge pull request #10 from Addibro/modified
Browse files Browse the repository at this point in the history
Correct += into = to get right answer
  • Loading branch information
jsquared21 authored Oct 4, 2018
2 parents f1aad7d + a137737 commit 1fcbde2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Exercise_10/Exercise_10_01/Time.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public void setTime(long elapseTime) {

if (elapseTime > 0) {
totalSeconds = elapseTime / 1000;
second += totalSeconds % 60;
second = totalSeconds % 60;
totalMinutes = totalSeconds / 60;
minute += totalMinutes % 60;
minute = totalMinutes % 60;
totalHours = totalMinutes / 60;
hour += totalHours % 24;
hour = totalHours % 24;
}
}
}

0 comments on commit 1fcbde2

Please sign in to comment.