Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String getZeroPaddedNum(int num) {
String str;
if (num < 10 && num >= 0) {
str = "0" + num;
} else {
str = String.valueOf(num);
}
return str;
}
}