Java Integer.parseInt() 源码解析
//一般情况下,编程的基础类库支持2进制到36进制。//s为传入准备转换为int类型的字符串,radix代表几进制public static int parseInt(String s, int radix) throws NumberFormatException { //判断s是否为null if (s == null) { throw new NumberFormatException("null"); }
原创
2021-02-01 12:58:58 ·
525 阅读 ·
3 评论