使用Integer.parseInt()(最常用、最推荐)这是最直接、最简洁的方法,Integer类提供了一个静态方法parseInt(),它可以接受一个字符串和基数(radix)作为参数,并将其转换为对应的整数,语法:intde...