Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java 7.0µÄ±ä»¯

1.¶ÔcollectionsµÄÖ§³Ö 
Java´úÂë
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");  
 
 
ÏÖÔÚÄ㻹¿ÉÒÔ£º
Java´úÂë
List<String> list = ["item"];   
String item = list[0];     
Set<String> set = {"item"};     
Map<String, Integer> map = {"key" : 1};   
int value = map["key"];  
 
 
   
2.×Ô¶¯×ÊÔ´¹ÜÀí 
Java´úÂë
BufferedReader br = new BufferedReader(new FileReader(path));   
try {   
   return br.readLine();   
} finally {   
   br.close();   
}  
ÏÖÔÚÄ㻹¿ÉÒÔ£º 
Java´úÂë
try (BufferedReader br = new BufferedReader(new FileReader(path)) {   
   return br.readLine();   
}     
Äã¿ÉÒÔ¶¨Òå¸ü¶àµÄ×ÊÔ´     
try (   
   InputStream in = new FileInputStream(src);   
   OutputStream out = new FileOutputStream(dest))   
{   
 // ´úÂë   
}  
 
 
 
3.¶ÔͨÓÃʵÀý´´½¨(diamond)µÄtypeÒýÓýøÐÐÁ˸Ľø  
Java´úÂë
Map<String, List<String>> anagr


Ïà¹ØÎĵµ£º

javaÏ̳߳Ø

 1.ΪʲôҪʹÓÃÏ̳߳Ø
     ÔÚjavaÖУ¬Èç¹ûÿ¸öÇëÇóµ½´ï¾Í´´½¨Ò»¸öÐÂỊ̈߳¬¿ªÏúÊÇÏ൱´óµÄ¡£ÔÚʵ¼ÊʹÓÃÖУ¬·þÎñÆ÷ÔÚ´´½¨ºÍÏú»ÙÏß³ÌÉÏ»¨·ÑµÄʱ¼äºÍÏûºÄµÄϵͳ×ÊÔ´¶¼Ï൱´ó£¬ÉõÖÁ¿ÉÄÜÒª±ÈÔÚ´¦Àíʵ¼ÊµÄÓû§ÇëÇóµÄʱ¼äºÍ×ÊÔ´Òª¶àµÄ¶à¡£³ýÁË´´½¨ºÍÏú»ÙÏ̵߳ĿªÏúÖ®Í⣬»î¶¯µÄÏß³ÌÒ²ÐèÒªÏûºÄϵͳ×ÊÔ´¡ ......

³õѧjava´ÓÕâÀ↑ʼ

ÕâÊÇÎÒ¸öÈ˹éÄɵÄһЩ֪ʶµã£¬ÎÒ¾õµÃ³õѧjavaÊ×ÏÈÐèÒªÖØÒÔϵÄ֪ʶ¿ªÊ¼
(1)JAVA³ÌÐò¿ª·¢²½Ö裺
   Ô´´úÂë-->±àÒë³É*.class-->Ö´ÐÐ(½«.class½»¸øJVM)
   jvm--javaÐéÄâ»ú£¨½âÊÍÆ÷£©
(2)
   JDK -- java¿ª·¢¹¤¾ß°ü(±àÒëÆ÷¡¢½âÊÍÆ÷¡¢Àà¿â)
   JSDK -- java±ê×¼¿ª·¢¹¤¾ß°ü ......

Cavaj Java Decompiler ·´±àÒëÆ÷

Cavaj Java Decompiler is a graphical freeware utility that reconstructs Java source code from CLASS files. You can decompile Java applets, JAR and ZIP files, producing accurate Java source code. Browse the reconstructed source code with the Class View for instant access to methods and fields. The pr ......

javaÊÓƵÅàѵ½Ì³Ì

±¾ÈË´Óʽü10ÄêµÄjava¿ª·¢£¬×ܽáÒ»Ì×ÓÐЧµÄjavaʵսÊÓƵ½Ì³Ì£¬°üÀ¨£ºjava»ù´¡¡¢jspÅàѵ¡¢strutsʹÓá¢hibernateʹÓúÍspringµÄʹÓ㬻¹°üº¬´óÁ¿µÄÅàѵ´úÂ룬ÒÔ¼°sshÕûºÏ¿ª·¢È«¹ý³Ì¡£±¾Ì×ÊÓƵ5Ô·ݾͽ«Â¼ÖÆÍê³É£¬Èç¹ûÄúÓÐÒâÇëÁªÏµÎÒ£¬ÎÒµÄQQ£º1429154728 ......

JavaÖи÷ÀàCache»úÖÆʵÏÖ½â¾ö·½°¸

ÔÚJavaÖУ¬²»Í¬µÄÀ඼ÓÐ×Ô¼ºµ¥¶ÀµÄCache»úÖÆ£¬ÊµÏֵķ½·¨Ò²¿ÉÄÜÓÐËù²»Í¬£¬ÎÄÕÂÁоÙÁËJavaÖг£¼ûµÄ¸÷ÀàCache»úÖƵÄʵÏÖ·½·¨£¬Í¬Ê±½øÐÐÁË×ۺϵıȽϡ£
OSCache
OSCacheÊǸöÒ»¸ö¹ã·º²ÉÓõĸßÐÔÄܵÄJava EE»º´æ¿ò¼Ü£¬OSCacheÄÜÓÃÓÚÈκÎJavaÓ¦ÓóÌÐòµÄÆÕͨµÄ»º´æ½â¾ö·½°¸¡£
OSCacheÓÐÒÔÏÂÌص㣺»º´æÈκζÔÏó£¬Äã¿ÉÒÔ²»ÊÜÏÞÖƵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ