Jafe Lee

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  49 随笔 :: 0 文章 :: 24 评论 :: 0 Trackbacks
1、ISO-639 定义了语言代码, Common ISO-639 Language Codes
   而ISO-3166定义了国家代码 ,Common ISO-3166 Country Codes

2、boxing 问题:
(from JSR 5.1.7): If the value p being boxed is true, false, a byte, a char in the range \u0000 to \u007f, or an int or short number between -128 and 127, then let r1 and r2 be the results of any two boxing conversions of p. It is always the case that r1 == r2.
因此,下面一个例子
AutoBoxing.java
而其运行结果为:
运行结果
应尽量使用equals()而不是 == 来应用于诸如 Integer, String之类的比较

posted on 2007-08-12 20:27 Jafe Lee 阅读(109) 评论(0)  编辑  收藏

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


网站导航: