原理自己google
转换的话,用Integer类的这具方法static int parseInt(String s, int radix)