1、int转换为string类型的方法:
int nCount = 50;
String strInfo = String.valueOf(nCount);
2、string转换为int类型的方法:
String strInfo = "50";
int nCount = Integer.parseInt(strInfo);
Based on Hooto WebWare 1.0.1lab
Page rendered in 7.42 ms, taking 984.68 KB
Comments