List of utility methods to do Long to Hex Convert
String | getBinaryString(long src) 7 => 00000111 String binaryString = Long.toBinaryString(src); String temp = ""; for (int i = 0; i < Long.SIZE - binaryString.length(); i++) { temp += "0"; binaryString = temp + binaryString; return binaryString; |