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 = "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;
    }
}

Related

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