Here you can find the source of Long2String(final long value)
public static String Long2String(final long value)
//package com.java2s; //License from project: Apache License public class Main { public static String Long2String(final long value) { if (value >= 0) { return String.format("%08x", value); } else {/*from w w w. j av a2 s . com*/ return String.format("-%08x", -value); } } }