1
class Solution {
2
public String thousandSeparator(int n) {
3

4
StringBuffer str = new StringBuffer(Integer.toString(n));
5
int index = str.length() - 3;
6

7
while (index >= 1) {
8
str.insert(index, '.');
9
index = index - 3;
10
}
11

12
return str.toString();
13
}
14
}

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0