Java tutorial
//package com.java2s; import android.widget.NumberPicker.Formatter; public class Main { public static Formatter getNumberPickFormater() { return new Formatter() { @Override public String format(int value) { if (value < 10) { return "0" + value; } return String.valueOf(value); } }; } }