Java Hex Format formatHex(Integer input)

Here you can find the source of formatHex(Integer input)

Description

format Hex

License

LGPL

Declaration

public static String formatHex(Integer input) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static String formatHex(Integer input) {
        return "0x" + Integer.toHexString(input);
    }/*w  w w. j av a  2s  .c  o  m*/
}

Related

  1. formatColorInt2HexString(int c)
  2. formatGuidToDashedNotation(String hexValue)
  3. formatHEX(byte[] btValue, int iOffset, int iLength)
  4. formatHex(double theG)
  5. formatHex(int value, int width)
  6. formatHexBytes(byte[] raw)
  7. formatHexInt(final StringBuilder dst, final int p, int w)
  8. formatHexReversed(String original, int length)
  9. formatHexStr(int width, String hexStr)