Android Int to Byte Array Convert int2hex(int i)

Here you can find the source of int2hex(int i)

Description

inthex

License

Open Source License

Declaration

public static String int2hex(int i) 

Method Source Code

//package com.java2s;

public class Main {
    public static String int2hex(int i) {
        String h = "";

        h = Integer.toHexString(i);
        if (h.length() == 1) {
            h = "0" + h;
        }/*from  w ww.jav a 2s .c o  m*/
        return h;
    }
}

Related

  1. int2ByteArray3(int value)
  2. int2byte(int input)
  3. int2byteWithInvert(int input)
  4. int2bytesBE(int val, byte[] b, int off)
  5. int2bytesLE(int val, byte[] b, int off)
  6. intFitsIn(final int value)
  7. intForByte(byte b)
  8. intToByte(int number)
  9. intToByteArray(int a)