JAVA 中数据类型的转换

原始数据:String

转成INT:  Integer.valueOf(String)

转成float:Float.parseFloat(String)

你可能感兴趣的:(java,String,float)