Here you can find the source of Long2HexString(long h)
public static String Long2HexString(long h)
//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"; } }