Java Integer to Hex convertIntToHex(int i)

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

Description

convert Int To Hex

License

Open Source License

Declaration

public static final String convertIntToHex(int i) 

Method Source Code

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

public class Main {
    public static final String convertIntToHex(int i) {
        String rtrn = Integer.toHexString(i);
        return rtrn.length() == 1 ? "0" + rtrn : rtrn;
    }/*from   www . ja v a2  s. c  o m*/
}

Related

  1. asHex(final int value)
  2. asHex(int i)
  3. asHex(int i, int width)
  4. asHex(int val)
  5. convertIntArrayToHexString(int[] arr)
  6. convertInttoHexa(int n)
  7. int2CharHex(int integer)
  8. int2hex(final int a, final StringBuffer str)
  9. int2hex(final int i)