Java 7µÄÐÂÌØÐÔ
ÎÒ¸Õ´ÓÔÚAntwerpÕÙ¿ªµÄDevoxx
´ó»áÉÏ»ØÀ´£¬»áÉϽéÉÜÁËJava7µÄÐÂÌØÐÔ£¬¶ÔÓ¦µÄJDK½«ÓÚ2010Äê9Ô·¢²¼¡£
ÏÂÃæÊÇ7¸öÒѾÍê³ÉµÄÐÂÌØÐÔ£º
¶ÔcollectionsµÄÓïÑÔ¼¶Ö§³Ö
×Ô¶¯×ÊÔ´¹ÜÀí
¸Ä½ø·ºÐÍÔÚ´´½¨ÊµÀýʱµÄÀàÐÍÒýÓÃ
´øÏ»®ÏßµÄÊý×Ö
ÔÚswitchÖÐʹÓÃString
¶þ½øÖÆÎÄ×Ö
¼ò»¯µÄ¿É±ä²ÎÊý·½·¨µ÷ÓÃ
Java7»¹ÓкܶàÆäËûµÄÐÂÌØÐÔ£¬ÎÒ½«»á¶Ô´Ë½øÐÐ×·×Ù¡£
¶ÔCollectionsµÄÓïÑÔ¼¶Ö§³Ö
Java½«»á³ÉΪµÚÒ»¸ö¶ÔCollections´´½¨Ìṩ֧³ÖµÄÓïÑÔ¡£ÕâÒâζ×ÅÔÚjavaÖпÉÒÔÏñRuby, PerlÄÇÑù´´½¨collection¡£
Java7֮ǰµÄ´úÂ룺
view plain
copy to clipboard
print
?
List<String> list =
new
ArrayList<String>();
list.add("item"
);
String item = list.get(0
);
Set<String> set = new
HashSet<String>();
set.add("item"
);
Map<String, Integer> map = new
HashMap<String, Integer>();
map.put("key"
,
1
);
int
value = map.get(
"key"
);
List<String> list = new ArrayList<String>();
list.add("item");
String item = list.get(0);
Set<String> set = new HashSet<String>();
set.add("item");
Map<String, Integer> map = new HashMap<String, Integer>();
map.put("key", 1);
int value = map.get("key");
Java7µÄ´úÂ룺
view plain
copy to clipboard
print
?
List<String> list = [
"item"
];
String item = list[0
];
Set<String> set = {"item"
};
Map<String, Integer> map = {"key"
:
1
};
int
value = map[
"key"
];
List<String> list = ["item"];
String item = list[0];
Set<String> set = {"item"};
Map<String, Integer>
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
Õâ¸ö¹ØÓÚJMS(Java Message Service)µÄ¸ÅÒª»Ø´ðÁËÏÂÃ漸¸öÎÊÌ⣺
1.ʲôÊÇÏûÏ¢£¿
2.ôÊÇJMS API£¿
3.ÈçºÎʹÓÃJMS API£¿
4. JMS APIÊÇÈçºÎÓëJ2EEƽ̨һÆð¹¤×÷µÄ£¿
1.1ʲôÊÇÏûÏ¢£¿
ÏûÏ¢ÊÇÈí¼þ×é¼þ»òÕßÓ¦ÓÃÖ®¼ä½»Á÷µÄÒ»ÖÖ·½·¨¡£ÏûϢϵͳÊÇÒ»¸öµã¶ÔµãµÄ¹¦ÄÜ£¬Ò»¸öÏûÏ¢¿Í»§¶Ë¿ÉÒÔ·¢ËÍºÍ½Ó ......
½ñÌìÎÒÔÚÌýÕÅТÏéÀÏʦ½²µÄJava¼ÓÇ¿ÊÓƵ£¬ÕÅÀÏʦ˵£ºJava»ù´¡¼Óǿ֪ʶ´ú±íÁËÒ»ÖÖjava¹¦Á¦£¬Ò²´ú±íÁËÄãµÄѧϰÄÜÁ¦£¬ÄÜÕÆÎÕÕâЩ֪ʶ˵Ã÷ÄãÒÔÇ°µÄѧϰÄÜÁ¦²»´í£¬¾ß±¸ÕâЩ֪ʶ£¬Ò²ËµÃ÷ÄãδÀ´ÕÆÎÕÐÂ֪ʶµÄDZÄܲ»´í¡£ÎÒ¾õµÃÕÅÀÏʦ˵µÄÓеÀÀí£¬ÎÒµÄJava»ù´¡²»ÊǺܺã¬Òò´Ë£¬ÎÒÒªºÃºÃѧѧÕÅÀÏʦ½²µÄ»ù´¡¼ÓÇ¿ÊÓƵ¡£
Ê×ÏÈÕÅÀÏ ......
×î½üµÄDevoxx´ó»áÉÏ£¬Java 7½«°üº¬±Õ°üµÄÏûÏ¢ÁîºÜ¶àÈ˸е½Õñ·Ü——Õ⽫×öΪһ¸ö¶ÀÁ¢µÄJSR±»ÊµÏÖ¡£ÔÚÖÚ¶àJava 7еÄÓïÑÔÌØÐÔÖУ¬ÓÐһЩÏÖÔÚÒѾÍê³ÉÁË¡£Devoxx´ó»áµÄһλ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËÏÂÃæÕâЩJava 7ÒѾÍê³ÉµÄ7´óй¦ÄÜ£º
1£©¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö£»
2£©×Ô¶¯×ÊÔ´¹ÜÀí£»
3£©¸Ä½øµÄͨÓÃʵÀý´´½¨ÀàÐÍÍ ......
½«±ðÈ˵ÄÏîÄ¿»òJAVAÎļþµ¼Èëµ½×Ô¼ºµÄEclipseÖÐʱ£¬³£³£»á³öÏÖJAVAÎļþµÄÖÐÎÄ×¢Êͱä³ÉÂÒÂëµÄÇé¿ö£¬Ö÷ÒªÔÒò¾ÍÊDZðÈ˵ÄIDE±àÂë¸ñʽºÍ×Ô¼ºµÄEclipse±àÂë¸ñʽ²»Í¬¡£
×ܽáÍøÉϵĽ¨ÒéºÍ×Ô¼ºµÄÌå»á£¬¿ÉÒԲο¼ÒÔϼ¸ÖÖ½â¾ö·½Ê½£º
1 ¸Ä±äÕû¸öÎļþÀàÐ͵ıàÂë¸ñʽ
1) eclipse->window->prefer ......