how to pad zeros in java code example
Example 1: padding a string with 0 in java
String.format("%05d", yournumber);
//%05 means length of 5
// 25 becomes 00025
Example 2: java number padding zeros
System.out.println(String.format("%03d", 4)); // 004