Here you can find the source of fromHex(String s)
public static int fromHex(String s)
//package com.java2s; //License from project: Open Source License public class Main { public static int fromHex(String s) { return Integer.parseInt(s, 16); }/*from w w w .j av a 2 s.c om*/ }