Here you can find the source of base16ToInt(char c)
public static int base16ToInt(char c)
//package com.java2s; //License from project: Open Source License public class Main { public static final String BASE_16 = "0123456789abcdef"; public static int base16ToInt(char c) { return BASE_16.indexOf(String.valueOf(c).toLowerCase()); }//from w w w . j a v a 2 s . com }