Java Integer to intToID(int ID)

Here you can find the source of intToID(int ID)

Description

int To ID

License

Open Source License

Declaration

public static String intToID(int ID) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String intToID(int ID) {
        String ret = "";
        for (int i = 0; i < 4; i++) {
            ret = (char) ((ID >> (i * 8)) & 0xFF) + ret;
        }//from  w  w  w  . j  a  v  a 2s .c o m
        return ret;
    }
}

Related

  1. intToFourByte(long value, byte[] dest, int off)
  2. intToFourBytes(int i)
  3. intToFourBytes(int iValue, byte b[], int offset)
  4. intToFourChars(int value)
  5. intToGoodBadSimple(int i)
  6. intToInteger(int[] array)
  7. intToIntegerArray(int[] array)
  8. intToLengthHexByte(int args, int hexLength)
  9. intToLetter(int index)