Here you can find the source of intToID(int ID)
public static String intToID(int ID)
//package com.java2s; //License from project: Open Source License public class Main { public static String intToID(int ID) { String ret = ""; for (int i = 0; i < 4; i++) { ret = (char) ((ID >> (i * 8)) & 0xFF) + ret; }//from w w w . j a v a 2s .c o m return ret; } }