public class Main {
    public static void main(String[] args) {
        String str = "ABCDEF";
        System.out.printf("%15d",Integer.parseInt(str,16));//字符串string转16进制的int
    }
}