Java Integer to IntToEnode62(Integer int10)

Here you can find the source of IntToEnode62(Integer int10)

Description

Int To Enode

License

Apache License

Declaration

public static String IntToEnode62(Integer int10) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static String[] str62keys = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e",
            "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
            "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
            "V", "W", "X", "Y", "Z" };

    public static String IntToEnode62(Integer int10) {
        String s62 = "";
        int r = 0;
        while (int10 != 0) {
            r = int10 % 62;
            s62 = str62keys[r] + s62;/*w  w w .  java2s . c  om*/
            int10 = (int) Math.floor(int10 / 62.0);
        }
        return s62;
    }
}

Related

  1. intToEightByte(long value, byte[] dest, int off)
  2. intToEightHexString(final int value)
  3. intToEle(int integEle)
  4. intToEncodedID(int input)
  5. IntToEnode62(Integer int10)
  6. intToFixedLengthString(int value, int length)
  7. intToFourByte(long value, byte[] dest, int off)
  8. intToFourBytes(int i)
  9. intToFourBytes(int iValue, byte b[], int offset)