Here you can find the source of IntToEnode62(Integer int10)
public static String IntToEnode62(Integer int10)
//package com.java2s; //License from project: Apache License public class Main { private static String str62keys = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static String IntToEnode62(Integer int10) { String s62 = ""; int r = 0; while (int10.intValue() != 0) { r = Integer.parseInt(String.valueOf(int10.intValue() % 62)); s62 = str62keys.charAt(r) + s62; String s = String.valueOf(Math.floor(int10.intValue() / 62)); s = s.substring(0, s.length() - 2); int10 = Integer.valueOf(Integer.parseInt(s)); }/*from www. jav a 2s . c o m*/ return s62; } }