标签:col str tostring valueof string eof new color int
1.String s1 = "" + 100;
2.String s2 = String.valueof(100);
3.(int -- Integer -- String)
Integer i = new Integer(100);
String s3 = i.toString();
4.String s4 = Integer.toString(100);
String s = "100";
1.(String -- Integer -- int)
Integer it = new Integer(s);
int i1 = it.intValue();
2.int i2 = Integer.parseInt(s);
标签:col str tostring valueof string eof new color int
原文地址:https://www.cnblogs.com/ayeex/p/9743343.html