Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String formatNumber(int value) { return new DecimalFormat("00").format(value); } }