String 类型的数据强转成int的方法 有2个方法:1). int i = Integer.parseInt(str); 2). int i = Integer.valueOf(str).intValue();