Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
            }
        };
    }
}