I have an array of these numbers
61672 8414449 264957
I use a DecimalFormat object like this
DecimalFormat
DecimalFormat fo
You can wrap it into a String.format call like this:
String.format
String.format("%15s", formatter.format(i))