Java Utililty Methods Hex to Long

List of utility methods to do Hex to Long

Description

The list of methods to do Hex to Long are organized into topic(s).

Method

longconvertHexStringToLong(String hexString)
convert Hex String To Long
long val = 0L;
if ((hexString != null) && (hexString.length() > 0)) {
    String hexVal = hexString.trim();
    int ndex = 0;
    if (hexVal.startsWith("0x"))
        ndex = 2;
    hexVal = hexVal.substring(ndex);
    val = Long.parseLong(hexVal, 16);
...