Java Integer to String int2String(int i, int subNum)

Here you can find the source of int2String(int i, int subNum)

Description

int String

License

Open Source License

Declaration

public static String int2String(int i, int subNum) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static String int2String(int i, int subNum) {
        String returnValue = "00000000" + String.valueOf(i);
        return returnValue.substring(returnValue.length() - subNum, returnValue.length());
    }/*from  w  w w  .j a  va2  s  . c o m*/
}

Related

  1. convertIntToString(int value)
  2. convertIntToString(int value)
  3. int2str(int someint)
  4. int2String(int i)
  5. int2String(int i)
  6. int2string(int n)
  7. int2string(int[] a)
  8. int2String(Integer int_obj)
  9. int2Word(int val)