Android Int Pad pad(int c)

Here you can find the source of pad(int c)

Description

pad

Declaration

public static String pad(int c) 

Method Source Code

//package com.java2s;

public class Main {
    public static String pad(int c) {
        if (c >= 10)
            return String.valueOf(c);
        else//from   ww  w  .j a v  a2  s  . c o  m
            return "0" + String.valueOf(c);
    }
}

Related

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