That's how Java displays integers. You'll need to use a number format to get it to display 03. See: DecimalFormat (Java 2 Platform SE v1.4.2)