Android Int Pad addZeroPrefix(int value)

Here you can find the source of addZeroPrefix(int value)

Description

add Zero Prefix

Declaration

public static String addZeroPrefix(int value) 

Method Source Code

//package com.java2s;

public class Main {
    public static String addZeroPrefix(int value) {
        if (value <= 9) {
            return "0" + value;
        } else {/*from ww  w  . j  ava  2  s. c  o  m*/
            return "" + value;
        }
    }
}

Related

  1. pad(int c)
  2. addZreoIfLessThanTen(int i)
  3. paddedInt(int value, int charcount)