??xml version="1.0" encoding="utf-8" standalone="yes"?>国产高清一区二区三区,色猫av在线,亚洲欧美不卡http://www.aygfsteel.com/ronghai/category/17105.html一个新手学习JavaEE的心?希望对学习JavaEE的朋友有些帮助? zh-cnSun, 03 Jun 2007 11:57:30 GMTSun, 03 Jun 2007 11:57:30 GMT60q来偶看一下swing.写了一个学生管理系l?/title><link>http://www.aygfsteel.com/ronghai/archive/2007/05/29/120775.html</link><dc:creator>ronghai</dc:creator><author>ronghai</author><pubDate>Tue, 29 May 2007 15:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/ronghai/archive/2007/05/29/120775.html</guid><wfw:comment>http://www.aygfsteel.com/ronghai/comments/120775.html</wfw:comment><comments>http://www.aygfsteel.com/ronghai/archive/2007/05/29/120775.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/ronghai/comments/commentRss/120775.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/ronghai/services/trackbacks/120775.html</trackback:ping><description><![CDATA[q来偶看一下swing.写了一个学生管理系l?br>http://www.aygfsteel.com/Files/ronghai/homework.zip<br>大家可以下蝲了看?<br><br><br> <img src ="http://www.aygfsteel.com/ronghai/aggbug/120775.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/ronghai/" target="_blank">ronghai</a> 2007-05-29 23:14 <a href="http://www.aygfsteel.com/ronghai/archive/2007/05/29/120775.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>控制反{ Type1IoC,Type2IoC和Type3IoChttp://www.aygfsteel.com/ronghai/archive/2007/05/29/120749.htmlronghaironghaiTue, 29 May 2007 10:45:00 GMThttp://www.aygfsteel.com/ronghai/archive/2007/05/29/120749.htmlhttp://www.aygfsteel.com/ronghai/comments/120749.htmlhttp://www.aygfsteel.com/ronghai/archive/2007/05/29/120749.html#Feedback0http://www.aygfsteel.com/ronghai/comments/commentRss/120749.htmlhttp://www.aygfsteel.com/ronghai/services/trackbacks/120749.html阅读全文

ronghai 2007-05-29 18:45 发表评论
]]>
诡异的autoboxing与unboxinghttp://www.aygfsteel.com/ronghai/archive/2007/05/20/118652.htmlronghaironghaiSun, 20 May 2007 03:53:00 GMThttp://www.aygfsteel.com/ronghai/archive/2007/05/20/118652.htmlhttp://www.aygfsteel.com/ronghai/comments/118652.htmlhttp://www.aygfsteel.com/ronghai/archive/2007/05/20/118652.html#Feedback0http://www.aygfsteel.com/ronghai/comments/commentRss/118652.htmlhttp://www.aygfsteel.com/ronghai/services/trackbacks/118652.html首先看一D代码(使用JDK 5Q,如下Q?br>
 1 public class Test {
 2 public static void main(String[] args) {
 3 Integer i1 = 127;
 4 Integer i2 = 127;
 5 if (i1 == i2)
 6 System.out.println("Equal!");
 7 else
 8 System.out.println("Not equal!");
 9 }
10 }

输出l果惛_大家也知道,?#8220;Equal!”。现在把i1和i2的值由127改ؓ128看看会发生什么?l果输出“Not equal!”?br>
注意i1和i2都是IntegercdQ事实上只要q个值的范围?#8220;-128?27”之间Q输出结果都?#8220;Equal!”。JDK 5引进了很多新的特性,其中有一个就是自动装(AutoboxingQ和自动拆箱QAuto-UnboxingQ。当i1和i2gؓ128Ӟ在进? “==”Ӟ它们被装q两个不同的Integer ObjectsQ由于这是两个不同的instancesQ它们引用不同的内存地址Q所以结果是“Not equal!”? 但当q个值是127ӞJVM自动这个D{换成基本cdintQ这栯?#8220;==”ӞJVM仍然使用的是相同的object instanceQ? 所以输出结果ؓ“Equal!”了?br>

其实q与'=='q算W的比较有关Q?=='可用来比较两个基本型态的变量值是否相{,事实?=='也用于判断两个对象变量名U是否参考至同一个对象?br>
所 ?=='可以比较两个基本型态的变量值是否相{,也可以判断两个对象变量的参考对象是否相同,当您如前两个E序的方式撰写时Q编译器不知道您实际上要? 较的是哪一U?所以对于g-128?27之间的|它们被装׃ؓInteger对象后,会存在内存之中被重用Q所以当值在100Q?=='q行? 较时Qi1 ?i2实际上参考至同一个对象?br>
如果过了从-128?27之间的|被装后的Integer对象q不会被重用Q即相当于每ơ都新徏一个Integer对象Q所以当值在 200Q?=='q行比较Ӟi1与i2参考的是不同的对象?br>

“Integer i1 = 127;”在JDK1.5下可以编译通过的,q就是自动装(AutoboxingQ和自动拆箱QAuto-UnboxingQ。自动装? QAutoboxingQ特性让Java自动包装一个简单数据类型(例如intQ到对应的包装类型中Q例如IntegerQ中?br> 在《JSR 201: Extending the Java Programming Language with Enumerations, Autoboxing, Enhanced for loops and Static Import》中Q对q个问题Q是作了q样的规定:
If the value p being boxed is true, false, a byte, an ASCII character, or an integer or short number between -127 and 128, then let r1 and r2 be the results of any two boxing conversions of p. It is always the case that r1 == r2.
在Java中,The following is the list of primitives stored as immutable objectsQ不可变对象Q?
* boolean values true and false
* All byte values
* short values between -128 and 127
* int values between -128 and 127
* char in the range \u0000 to \u007F

ronghai 2007-05-20 11:53 发表评论
]]>
很久很久以前写的一个程?/title><link>http://www.aygfsteel.com/ronghai/archive/2007/03/08/102575.html</link><dc:creator>ronghai</dc:creator><author>ronghai</author><pubDate>Thu, 08 Mar 2007 04:39:00 GMT</pubDate><guid>http://www.aygfsteel.com/ronghai/archive/2007/03/08/102575.html</guid><wfw:comment>http://www.aygfsteel.com/ronghai/comments/102575.html</wfw:comment><comments>http://www.aygfsteel.com/ronghai/archive/2007/03/08/102575.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/ronghai/comments/commentRss/102575.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/ronghai/services/trackbacks/102575.html</trackback:ping><description><![CDATA[     摘要: *本段代码是自q一个作业,我想有些地方q可以简单点Q但是,发现单了却不怎么好用Q所以有点复?<br>*作业的要求是可以删除掉Q意一个文件或文g夹,而不文件夹里面是否q有其他文gQ?<br>*有个Ҏ是可以很快就实现的就是直接调要系l的指oQ但是java要运行在Lq_Q所以我p样复杂点?<br>*Ҏ使用java DeleteFile 文g名或文g夹名 [q|Q] <br>*后面有两个参敎ͼW一个十文g或文件夹名,W二个是q <br>* q表示强制删除Q没有确?nbsp; <a href='http://www.aygfsteel.com/ronghai/archive/2007/03/08/102575.html'>阅读全文</a><img src ="http://www.aygfsteel.com/ronghai/aggbug/102575.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/ronghai/" target="_blank">ronghai</a> 2007-03-08 12:39 <a href="http://www.aygfsteel.com/ronghai/archive/2007/03/08/102575.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>实用单才是王?/title><link>http://www.aygfsteel.com/ronghai/archive/2006/12/12/87216.html</link><dc:creator>ronghai</dc:creator><author>ronghai</author><pubDate>Tue, 12 Dec 2006 05:08:00 GMT</pubDate><guid>http://www.aygfsteel.com/ronghai/archive/2006/12/12/87216.html</guid><wfw:comment>http://www.aygfsteel.com/ronghai/comments/87216.html</wfw:comment><comments>http://www.aygfsteel.com/ronghai/archive/2006/12/12/87216.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/ronghai/comments/commentRss/87216.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/ronghai/services/trackbacks/87216.html</trackback:ping><description><![CDATA[ <p>最q学习java web 开发框架的时候,发现现在有好多框架结构,但仔l研I现在内部实现机制有些大同小异的感觉Q但是其q不怎么Ҏ上手Q就是EJB功能恐怕是java web框架中最强大了,但是其复杂程度也是最高的Q所以导致了一大批所谓的轻量U的开发框架。我以ؓ不管是什么框架只要其易学单,Ҏ配置---不管是对E序员还是谁。就是最好的?br />像刚才看到一脓子。(<a title="ajax" href="/wanghaikuo/archive/2006/12/12/87102.html " target="_blank">AjaxQ我们真的需要吗Q?/a>Q?br />作者对Ajax是否真的需要提出疑问,个h觉得很有道理Qƈ不是什么强大的技术就是最好的技术。只有是最实用的技术才是最好技术,技术只是ؓ了解决问题的Q就像我可以用一行代码写?hello world"Q我也可以用数百行代码写出来Q而且我在我的代码里可以用上很到强大的技术,但是实用吗?只不q一个hello world 而已Q需要这样吗Q所以什么样的系l用什么用的技术?br />单实用就是王?/p> <img src ="http://www.aygfsteel.com/ronghai/aggbug/87216.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/ronghai/" target="_blank">ronghai</a> 2006-12-12 13:08 <a href="http://www.aygfsteel.com/ronghai/archive/2006/12/12/87216.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">ֹ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ǭ</a>| <a href="http://" target="_blank">°Ͷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¬</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˷</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ϰˮ</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Զ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϳ</a>| <a href="http://" target="_blank">غ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">廪</a>| <a href="http://" target="_blank">޻</a>| <a href="http://" target="_blank">΢ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ܿ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">J</a>| <a href="http://" target="_blank">¤</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">֦</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>