Java Integer to intToFourChars(int value)

Here you can find the source of intToFourChars(int value)

Description

int To Four Chars

License

Open Source License

Declaration

public static String intToFourChars(int value) 

Method Source Code

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

public class Main {
    public static String intToFourChars(int value) {
        char[] chars = { (char) (0xFF & (value >> 24)), (char) (0xFF & (value >> 16)), (char) (0xFF & (value >> 8)),
                (char) (0xFF & value) };
        return new String(chars);
    }//  ww  w  .  j a v a2  s  .  c o  m
}

Related

  1. IntToEnode62(Integer int10)
  2. intToFixedLengthString(int value, int length)
  3. intToFourByte(long value, byte[] dest, int off)
  4. intToFourBytes(int i)
  5. intToFourBytes(int iValue, byte b[], int offset)
  6. intToGoodBadSimple(int i)
  7. intToID(int ID)
  8. intToInteger(int[] array)
  9. intToIntegerArray(int[] array)