csi的同学竟来帮我看一下这段东西说了什么?

Interger 不是整数的意思吗 呵呵!
 
anInterger 是一个char
a string 应该没有空格的 是aString 我自己打错了
 
Java , should be:
int anInterger = 17;
String aString = String.valueOf( anInterger );

result:
aString = "17"
 
最初由 lushan 发布
anInterger 是一个char
a string 应该没有空格的 是aString 我自己打错了

是个int 非char
 
this is java

converting a integer to a string.

btw it is integer, not interger.
 
int anInterger = 17 - variable anInterger is defined to be a INT (integer), and assigned a value
String aString = String.valueOf(anInterger) - aString is defined as a string (array of chars), function String.valueOf convert integer into string. Therefore the variable aString is assigned value of two chars, "1" and "7" aString[1] = "1", aString[2] = "7"
 
是吧一个string 转换成一个 integer吗?
还是 把一个integer转换成一个string?
 
那我 system.out.println ( anInteger) 会变成输出一个数字吗?
 
anInteger is still a number

aString is a string that looks like a number
 
那我就是要system.out.println ( aString ) 这样屏幕上显示出的就是一个属性为string 的number 喽??
 
后退
顶部