Java Hex Calculate toHexString(long l)

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

Description

Converts long to hexadecimal string.

License

Apache License

Parameter

Parameter Description
l value

Return

hexadecimal representation of given long

Declaration

public static String toHexString(long l) 

Method Source Code

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

public class Main {
    /**/*w  w w.ja  va  2s .co m*/
     * Converts long to hexadecimal string.
     *
     * @param l
     *            value
     * @return hexadecimal representation of given long
     *
     * @see Long#toHexString(long)
     */
    public static String toHexString(long l) {
        return Long.toString(l, 16);
    }
}

Related

  1. toHexString(int[] ia)
  2. toHexString(int[] x, int bitsPerDigit)
  3. toHexString(Integer num)
  4. toHexString(long i)
  5. toHexString(long l)
  6. toHexString(long l)
  7. toHexString(long l)
  8. toHexString(long value, int digits)
  9. toHexString(long value, int digits)