Java 7ÒѾÍê³ÉµÄÆß´óй¦ÄÜÔ¤ÀÀ
Java 7ÒѾÍê³ÉµÄÆß´óй¦ÄÜÔ¤ÀÀ ת×Ô51CTO
½ñÄêµÄDevoxx´ó»áÓÖÊÇÒ»´ÎÓйØJava 7½ø³ÌµÄÒ»´Îչʾ´ó»á¡£Ò»Î»DevoxxµÄ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËJava 7ÏÖÔÚÒѾÍê³ÉµÄ7´óй¦ÄÜ¡£Java 7Ô¤¼Æ½«ÔÚ2010Äê9ÔÂÕýʽµ½À´¡£
JigsawÏîÄ¿¼ò½é£ºJava 7µÄÐÂÄ£¿éϵͳ
̽ÃØJava 7ÐÂÔöÀ¬»ø»ØÊÕÆ÷G1ÌØÐÔ
̽ÃØJava 7£ºJVM¶¯Ì¬ÓïÑÔÖ§³ÖÏê½â
Java 7й¦ÄܽéÉܼ°ÓëJava1.7ÐÔÄܲâÊÔ±È..
Java 7¾ö¶¨°üº¬±Õ°ü ·¢²¼ÈÕÆÚÍƳÙÖÁ2010..
¡¾51CTO¿ìÒë¡¿×î½üµÄDevoxx´ó»áÉÏ£¬Java 7½«°üº¬±Õ°üµÄÏûÏ¢ÁîºÜ¶àÈ˸е½Õñ·Ü——Õ⽫×öΪһ¸ö¶ÀÁ¢µÄJSR±»ÊµÏÖ¡£ÔÚÖÚ¶àJava 7еÄÓïÑÔÌØÐÔÖУ¬ÓÐһЩÏÖÔÚÒѾÍê³ÉÁË¡£Devoxx´ó»áµÄһλ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËÏÂÃæÕâЩJava 7ÒѾÍê³ÉµÄ7´óй¦ÄÜ£º
1£©¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö£»
2£©×Ô¶¯×ÊÔ´¹ÜÀí£»
3£©¸Ä½øµÄͨÓÃʵÀý´´½¨ÀàÐÍÍƶϣ»
4£©Êý×Ö×ÖÃæÁ¿Ï»®ÏßÖ§³Ö£»
5£©switchÖÐʹÓÃstring£»
6£©¶þ½øÖÆ×ÖÃæÁ¿£»
7£©¼ò»¯¿É±ä²ÎÊý·½·¨µ÷Óá£
ÏÂÃæÎÒÃÇÀ´×Ðϸ¿´Ò»ÏÂÕâ7´óй¦ÄÜ£º
¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö
Java½«°üº¬¶Ô´´½¨¼¯ºÏÀàµÄµÚÒ»ÀàÓïÑÔÖ§³Ö¡£ÕâÒâζ׿¯ºÏÀàµÄ´´½¨¿ÉÒÔÏñRubyºÍPerlÄÇÑùÁË¡£
Ô±¾ÐèÒªÕâÑù£º
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 = ["item"]; String item = list[0]; Set<String> set = {"item"}; Map<String, Integer> map = {"key" : 1}; int value = map["key"];
ÕâЩ¼¯ºÏÊDz»¿É±äµÄ¡£
×Ô¶¯×ÊÔ´¹ÜÀí
JavaÖÐijЩ×ÊÔ´ÊÇÐèÒªÊÖ¶¯¹Ø±ÕµÄ£¬ÈçInputStream£¬Writes£¬Sockets£¬Sql classesµÈ¡£Õâ¸öеÄÓïÑÔÌØÐÔÔÊÐítryÓï¾ä±¾ÉíÉêÇë¸ü¶àµÄ×ÊÔ´£¬ÕâЩ×ÊÔ´×÷ÓÃÓÚtry´úÂë¿é£¬²¢×Ô¶¯¹Ø±Õ¡£
Õâ¸ö£º
BufferedReader br = new Buffered
Ïà¹ØÎĵµ£º
//´ò¿ª¹¤¾ßµÄ·¾¶¼°Ãû×Ö
String toolsPath = "D:/office/Office12/WINWORD.EXE";
//±»´ò¿ªÎļþµÄ·¾¶¼°Ãû×Ö
String fileName = " D:/test.doc";
try {
Process p = Runtime.getRuntime().exec(toolsPath+fileName);
} catch (IOException e) {
// T ......
public class Test2 {
public static void main(String[] args) {
// ¼òµ¥ÈÏʶÕýÔò±í´ïʽµÄ¸ÅÄî
/*
* p("abc".matches("...")); p("a8729a".replaceAll("\\d", "-")); Pattern
* p = Pattern.compile("[a-z]{3}"); Matcher m = p.match ......
Ê×ÏÈÓÐÈý¸ö¸ÅÄîÐèÒªÁ˽⣺
Ò»£®¾²Ì¬³õʼ»¯£ºÊÇÖ¸Ö´Ðо²Ì¬³õʼ»¯¿éÀïÃæµÄÄÚÈÝ¡£
¶þ£®ÊµÀý³õʼ»¯£ºÊÇÖ¸Ö´ÐÐʵÀý³õʼ»¯¿éÀïÃæµÄÄÚÈÝ¡£
Èý£®¹¹Ôì·½·¨£ºÒ»¸öÃû³Æ¸úÀàµÄÃû³ÆÒ»ÑùµÄ·½·¨£¬ÌØÊâÔÚÓÚ²»´ø·µ»ØÖµ¡£
¶ÔÓÚÕâÈý¸ö¸ÅÄ¸ø³öÒÔϳÌÐò£¬·½±ãÀí½â£º
Java´úÂë
class Book{ ......
javaµÚÒ»²½——JDK»·¾³±äÁ¿ÅäÖÃ
ÏÂÔغõÄJDKÊÇÒ»¸ö¿ÉÖ´Ðа²×°³ÌÐò£¬Ë«»÷°²×°¡£½«°²×°Â·¾¶¸ÄΪ£ºC:\jdk1.6.0£¨µ±È»ÆäËû·¾¶Ò²¿ÉÒÔ£©¡£
JDK°²×°Íê³ÉÖ®ºóÎÒÃÇÀ´ÉèÖû·¾³±äÁ¿£º
ÎҵĵçÄÔµãÓÒ¼ü£¬Ñ¡Ôñ“ÊôÐÔ”£¬Ñ¡Ôñ“¸ß¼¶”±êÇ©£¬½øÈë»·¾³±äÁ¿ÉèÖ㬷ֱðÉèÖÃÈçÏÂÈý¸ö»·¾³±äÁ¿£º
£¨1£©É ......