Here you can find the source of int2EyptStr(int num)
public static String int2EyptStr(int num)
//package com.java2s; public class Main { public static String int2EyptStr(int num) { char[] tmp = new char[32]; int i = 0; if (0 == num) { tmp[31] = '0'; i = 1;//from w w w .jav a 2s . c o m } while (0 != num && i < 32) { int v = num % 32; if (v < 10) tmp[31 - i] = (char) (v + '0'); else tmp[31 - i] = (char) (v - 10 + 'A'); num = num / 32; i++; } return new String(tmp, 32 - i, i); } }