Java Integer Convert To IntegerTo(Integer i)

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

Description

Integer To

License

Apache License

Declaration

public static String IntegerTo(Integer i) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String IntegerTo(Integer i) {
        String str = "";
        if (i.intValue() < 10) {
            str = "0" + i;
        } else {/*from w  w  w  . j a v  a 2 s.  co  m*/
            str = String.valueOf(i);
        }
        return str;
    }
}

Related

  1. fromInternalForm(String internalForm)
  2. fromIntLong(byte[] value)
  3. fromInts(int[] values)
  4. fromIntString(Object obj)
  5. fromIntWithPrefix(byte prefix, int v)
  6. integerToASCII(int number)
  7. integerToByte(int i)
  8. IntegerTochar(final Integer value)
  9. integerToFloat(float f, int i, float offset, boolean rotate)