Java tutorial
//package com.java2s; import android.widget.TextView; public class Main { public static void formatPadWithBlank(TextView txt, int number) { if (number < 10) { txt.setText(" " + number); } else { txt.setText("" + number); } } }