Java Hex Calculate toHex16(long l)

Here you can find the source of toHex16(long l)

Description

to Hex

License

Open Source License

Declaration

public static final String toHex16(long l) 

Method Source Code

//package com.java2s;

public class Main {
    /** @see #toHex2(int) */
    private static boolean hexUpperCase = true;

    public static final String toHex16(long l) {
        String s = "000000000000000" + Long.toHexString(l);
        s = s.substring(s.length() - 16);
        return hexUpperCase ? s.toUpperCase() : s;
    }//from ww  w  .  java 2s  .  c  om
}

Related

  1. toHex(StringBuffer buf, long value, int width)
  2. toHex(StringBuilder s, byte b)
  3. toHex00String(int c)
  4. toHEX1(byte b)
  5. toHex16(int w)
  6. toHex4(int value)
  7. toHex8(long x)
  8. toHexa(byte[] bb)
  9. toHexAddress(long address)