转换方法如下: a="12345"; int i; (视频教程推荐:java视频) 方法一: i=Integer.parseInt(a); 方法二: i=Integer.valueOf(a).intValue(); 推荐教程:java入门程序