Java Hex Calculate toHexLiteral(int v)

Here you can find the source of toHexLiteral(int v)

Description

to Hex Literal

License

LGPL

Declaration

public static String toHexLiteral(int v) 

Method Source Code

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

public class Main {
    public static String toHexLiteral(int v) {
        return "0x" + Integer.toHexString(v);
    }//from w  w w  . ja  v a  2 s. c  o  m
}

Related

  1. toHexFromByte(final byte b)
  2. toHexFromBytes(byte[] bytes)
  3. toHexFromBytes(final byte[] bytes)
  4. toHexFromOct(final String octSymbols)
  5. toHexHashString(byte[] id)
  6. toHexN(long src, int hexn)
  7. ToHexNumber(int c)
  8. toHexOrNegative(int i)
  9. toHexPadZero(byte[] bytes)