一路拾遗
Collect By Finding All The Way ......
posts - 81,comments - 41,trackbacks - 0
<2010年5月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

我的博客开张啦!欢迎大家多多来踩!

常用链接

留言簿(5)

随笔档案

文章档案

相册

搜索

  •  

积分与排名

  • 积分 - 64351
  • 排名 - 822

最新评论

阅读排行榜

评论排行榜

public static void main(String[] args) {
  Integer a ;
  Integer b ;

  a
=16;
  b
=16;

  System.out.println(a 
== b);
  System.out.println(a.equals(b));
}
输出true  true

public static void main(String[] args) {
Integer a ;
Integer b ;

a
=128;
b
=128;

System.out.println(a 
== b);
System.out.println(a.equals(b));
}

输出false true

public static void main(String[] args) {
Integer a 
= new Integer(5);
Integer b 
= new Integer(5);

System.out.println(a 
== b);
System.out.println(a.equals(b));
}
输出false ture
posted on 2010-05-27 16:19 胖胖泡泡 阅读(187) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: