Java Long to Hex longToHexString(long number)

Here you can find the source of longToHexString(long number)

Description

Convert a long to a hex String.

License

Apache License

Declaration

public static String longToHexString(long number) throws NumberFormatException 

Method Source Code

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

public class Main {
    /**//from   w  ww  . j  av  a  2s. c  om
     * Convert a long to a hex String.
     */
    public static String longToHexString(long number) throws NumberFormatException {
        return Long.toString(number, 16);
    }
}

Related

  1. longToHexChars(long value, int length)
  2. longToHexStr(long src, int len, int code)
  3. LongToHexString(final long value)
  4. longToHexString(long n, int digits)
  5. longToHexString(long num)
  6. longtoHexString(long wert, int bits)
  7. longToHexval(long l)