Java tutorial
//package com.java2s; public class Main { public static String parseMonth(int month) { if ((month + 1) < 10) { return "0" + (month + 1); } else { return String.valueOf((month + 1)); } } }