JAVA编写一个方法,把一个1位的16进制数转化为10进制数。
public Integer translate(String num) { return Integer.valueOf(num, 16); }