Here you can find the source of toHexString(long l)
public static String toHexString(long l)
//package com.java2s; //License from project: Apache License public class Main { public static String toHexString(long l) { return String.format("%x", l); }/*from w w w . j ava 2 s . c om*/ }