新闻正文

[转载] 问个指针的问题

来源:JAVA天堂  JAVA学习者  2007-8-2 02:24:24 网友评论 0 条 字体:[ ] ~我要投稿!
飘渺水云间 (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是什么对象哦
下一篇: 这句话说那里错啊??????
用户名:新注册) 密码: 匿名评论 [所有评论]
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
本栏搜索
  • Google
   网站首页 -  网站地图 -  技术学习 -  网站投稿 -  帮助中心
Copyright 2003-2008 www.javah.net All Rights Reserved
2008 如果你喜欢本站 请收藏本站 并推荐给你的朋友一起分享