锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91麻豆精品国产91久久久资源速度,久久免费一区,亚洲精品福利在线http://www.aygfsteel.com/nina-artemis/category/5311.htmlThe opposite of dreamzh-cnTue, 27 Feb 2007 12:34:08 GMTTue, 27 Feb 2007 12:34:08 GMT60Recommended books for Java developershttp://www.aygfsteel.com/nina-artemis/archive/2005/12/06/22676.htmlSportyBabeSportyBabeTue, 06 Dec 2005 02:34:00 GMThttp://www.aygfsteel.com/nina-artemis/archive/2005/12/06/22676.htmlhttp://www.aygfsteel.com/nina-artemis/comments/22676.htmlhttp://www.aygfsteel.com/nina-artemis/archive/2005/12/06/22676.html#Feedback2http://www.aygfsteel.com/nina-artemis/comments/commentRss/22676.htmlhttp://www.aygfsteel.com/nina-artemis/services/trackbacks/22676.html闃呰鍏ㄦ枃

SportyBabe 2005-12-06 10:34 鍙戣〃璇勮
]]>
J2SE 5.0 language featureshttp://www.aygfsteel.com/nina-artemis/archive/2005/11/28/21665.htmlSportyBabeSportyBabeMon, 28 Nov 2005 06:00:00 GMThttp://www.aygfsteel.com/nina-artemis/archive/2005/11/28/21665.htmlhttp://www.aygfsteel.com/nina-artemis/comments/21665.htmlhttp://www.aygfsteel.com/nina-artemis/archive/2005/11/28/21665.html#Feedback0http://www.aygfsteel.com/nina-artemis/comments/commentRss/21665.htmlhttp://www.aygfsteel.com/nina-artemis/services/trackbacks/21665.htmlGenerics
浣滅敤錛?communicate the element type of a collection to the compiler to avoid the unsafe downcasting.
鍜孋++涓璸arameterized types鐨勪綔鐢ㄧ浉浼?錛堝湪Thinking in java涓瑽ruce Eckel鎻愬埌榪囷級銆?BR>
Example: ArrayList<String> stringList =  new ArrayList<String>(); 
             ......Add elements to the stringList......
             String string1 = stringList.get(0);

For-each Loop
浣滅敤錛歩f you need not operate the designated elements within the iterator or array, for-each loop will bring the beautiful code for you and reduce the error opportunities.
            eliminates the drudgery and error-proneness of iterators and index variables when iterating over collections and arrays.
Example: String[] stringArray;
            for (String individualString: stringArray) {...}

I noticed that most of Russian guys in TopCoder use the for-each loop.

Autoboxing/Unboxing
浣滅敤錛歛utomates to box/unbox between primitive types and the appropriate wrapper types.
Example:  ArrayList<Integer> intList = new ArrayList<Integer>();
              int total = intList.get(0);

Typesafe Enums
浣滅敤錛歳eplace int Enum Pattern (e.g. public static final int XXX = 0;) to represent a fixed set of constants.
Example: public enum WEEKENDS { SAT, SUN };
             private final WEEKENDS weekend;

Varargs
浣滅敤錛歛utomates and hides the passing process in the case of the arbitrary number of parameters;
      
eliminates the need for manually boxing up argument lists into an array when invoking methods that accept variable-length argument lists.
       Varargs can be used only in the final argument position.
Example: public static String format(String pattern, Object... arguments);

Static Import
浣滅敤錛歛void qualifying static members with class names without the shortcomings of the "Constant Interface antipattern."
Once the static members have been imported, we don't have to use "ClassName.staticMemeber" in our classes.
Example: import static java.awt.Math.*; 

Metadata
浣滅敤錛歛void writing boilerplate code by enabling tools to generate it from annotations in the source code.
Example: public @interface XXX {...}

More information about "J2SE 5.0 new features" could be found at java.sum.com.



SportyBabe 2005-11-28 14:00 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 凌海市| 大庆市| 高邮市| 大邑县| 盐源县| 万安县| 徐水县| 洪江市| 布拖县| 金阳县| 庆阳市| 台东县| 屏东县| 乃东县| 金沙县| 囊谦县| 兰州市| 古蔺县| 安福县| 盐城市| 澜沧| 嘉禾县| 南汇区| 台东县| 胶州市| 确山县| 恭城| 丽水市| 庆城县| 全椒县| 崇州市| 家居| 溧水县| 双牌县| 聂荣县| 兰州市| 甘肃省| 库车县| 武功县| 志丹县| 仁寿县|