> You can use StringBuffer and cast when necessary.
Um, ok - that was kind of random.
To the OP - try this:DecimalFormat fmt = new DecimalFormat("0000000000");
System.out.println(" 0 = ["+fmt.format(0L)+"]");
System.out.println("12345 = ["+fmt.format(12345)+"]");
System.out.println("1234567890 = ["+fmt.format(1234567890)+"]");
Grant