int i = 100;
方法一:String s1 = i + " ";
方法二:String s2 = String.valueof(i);
方法三(先转换为Integer类型,在调用toString方法):Intrger i2 = new interger(i);
String s3 = i2.toString();
方法四:String s4 = Integer.toString(i);
int i = 100;
方法一:String s1 = i + " ";
方法二:String s2 = String.valueof(i);
方法三(先转换为Integer类型,在调用toString方法):Intrger i2 = new interger(i);
String s3 = i2.toString();
方法四:String s4 = Integer.toString(i);