String.format("%06d", i)
public static void main(String[] args) { for (int i = 0; i 10; i++) { System.out.println(String.format("%06d", i)); } System.out.println(String.format("