Here you can find the source of intToStr(int value)
static String intToStr(int value)
//package com.java2s; public class Main { static String intToStr(int value) { return new String(new byte[] { (byte) ((value & 0xff000000) >> 24), (byte) ((value & 0x00ff0000) >> 16), (byte) ((value & 0x0000ff00) >> 8), (byte) ((value & 0x000000ff)) }); }// w w w. j a v a 2s .c o m }