String 转 int 类型

 Integer.parseInt(“ 字符串”)
 
返回值是int 类型
判断转型后是否等于1
 Integer.parseInt(“ 字符串”)==1
原文地址:https://www.cnblogs.com/2016-cxp/p/8648033.html