回答編集履歴
1
つい癖でiと書いてしまった
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
int end = sb.charAt(0) == '-' ? 1 : 0;
|
16
16
|
|
17
|
-
for (int x = sb.length() - 3; x > end;
|
17
|
+
for (int x = sb.length() - 3; x > end; x -= 3) {
|
18
18
|
|
19
19
|
sb.insert(x, ',');
|
20
20
|
|