Java Long to Hex Long2HexString(long h)

Here you can find the source of Long2HexString(long h)

Description

Long Hex String

License

Open Source License

Declaration

public static String Long2HexString(long h) 

Method Source Code

//package com.java2s;
/**/*from   w ww.j  a  v  a2 s  .  c o m*/
 * CEDP: Computer Evaluator for Dependability and Performance
 * This file is distributed under the University of Illinois Open Source
 * License. See LICENSE.TXT for details.
 */

public class Main {
    public static String Long2HexString(long h) {
        try {
            return Long.toHexString(h);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "0";
    }
}

Related

  1. long2hexString(long x)
  2. long2HexString(StringBuilder buf, long value)
  3. longToHex(long a)
  4. longToHex(long l)