Java Integer Pad Zero ZeroPadded(Integer i)

Here you can find the source of ZeroPadded(Integer i)

Description

Zero Padded

License

Open Source License

Declaration

static public String ZeroPadded(Integer i) 

Method Source Code

//package com.java2s;
//   Licensed under the Apache License, Version 2.0 (the "License"); you may

public class Main {
    static public String ZeroPadded(Integer i) {
        String result = "" + i;
        if (i < 10)
            result = "0" + result;
        return result;
    }//from w w  w.j a v a 2s .c  o  m
}

Related

  1. zeroPad(int n, int len)
  2. zeroPad(int number, int places)
  3. ZeroPad(int number, int width)
  4. zeroPad(int value, int padding)
  5. zeroPadArray(byte[] source, int size)
  6. zeroPaddedHex(int n, int length)
  7. zeroPaddedInt(int num, int length)
  8. zeroPadInteger(int i)