新闻正文
飘渺水云间 (Fri Mar 5 20:37:17 2004)
转信站: SJTU!netnews.sdu.edu.cn!news.uestc.edu.cn!news.ccie.net.cn!Freecity
【 以下文字转载自 CS 讨论区 】
【 原文由 shangxianyue 所发表 】
public class IntAndString2{
public static void main(String[] args){
String c="3";
Integer m=null;
m=Integer.getInteger(c);
System.out.println("m is "+m);
}
}
给m 赋值了,怎么结果还是NULL
!news.uestc.edu.cn!news.ccie.net.cn!Freecity
static Integer getInteger(String nm)
Determines the integer value of the system property with the specified name.
用valueOf(0
【 在 lguml (UML) 的大作中提到: 】
: 【 以下文字转载自 CS 讨论区 】
: 【 原文由 shangxianyue 所发表 】
: public class IntAndString2{
: public static void main(String[] args){
: String c="3";
: Integer m=null;
: m=Integer.getInteger(c);
: System.out.println("m is "+m);
: }
: >> .................<以下省略>............
Ping Girl : Request timed out
Ping Money : Destination unreachable
Ping Love : Unkown host name
Ping Future : Reply from hell: bytes=32 time=99year TTL=1
收藏到ViVi 收藏此页到365Key
上一篇:
sos,asp里面的rs是什么对象哦 下一篇:
这句话说那里错啊??????