最常用和推荐的方法:Integer.parseInt()这是将字符串转换为基本数据类型int的标准方法,语法publicstaticintparseInt(Strings)throwsNumberFormatExceptio...