Here you can find the source of int2String(int i, int subNum)
public static String int2String(int i, int subNum)
//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*/ }