Java tutorial
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; public class Main { public static long hex2long(String s) { return new BigInteger(s, 16).longValue(); } }