Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1fcbde2

Browse files
authored
Merge pull requestjsquared21#10 from Addibro/modified
Correct += into = to get right answer
2 parentsf1aad7d +a137737 commit1fcbde2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Exercise_10/Exercise_10_01/Time.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ public void setTime(long elapseTime) {
6666

6767
if (elapseTime >0) {
6868
totalSeconds =elapseTime /1000;
69-
second+=totalSeconds %60;
69+
second =totalSeconds %60;
7070
totalMinutes =totalSeconds /60;
71-
minute+=totalMinutes %60;
71+
minute =totalMinutes %60;
7272
totalHours =totalMinutes /60;
73-
hour+=totalHours %24;
73+
hour =totalHours %24;
7474
}
7575
}
7676
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp