Java 7ÒѾÍê³ÉµÄÆß´óй¦ÄÜÔ¤ÀÀ
Java 7ÒѾÍê³ÉµÄÆß´óй¦ÄÜÔ¤ÀÀzz
2009-12-12 09:15
×î½üµÄDevoxx´ó»áÉÏ£¬Java 7½«°üº¬±Õ°üµÄÏûÏ¢ÁîºÜ¶àÈ˸е½Õñ·Ü——Õ⽫×öΪһ¸ö¶ÀÁ¢µÄJSR±»ÊµÏÖ¡£ÔÚÖÚ¶àJava 7еÄÓïÑÔÌØÐÔÖУ¬ÓÐһЩÏÖÔÚÒѾÍê³ÉÁË¡£Devoxx´ó»áµÄһλ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËÏÂÃæÕâЩJava 7ÒѾÍê³ÉµÄ7´óй¦ÄÜ£º
1£©¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö£»
2£©×Ô¶¯×ÊÔ´¹ÜÀí£»
3£©¸Ä½øµÄͨÓÃʵÀý´´½¨ÀàÐÍÍƶϣ»
4£©Êý×Ö×ÖÃæÁ¿Ï»®ÏßÖ§³Ö£»
5£©switchÖÐʹÓÃstring£»
6£©¶þ½øÖÆ×ÖÃæÁ¿£»
7£©¼ò»¯¿É±ä²ÎÊý·½·¨µ÷Óá£
¡¡¡¡ÏÂÃæÎÒÃÇÀ´×Ðϸ¿´Ò»ÏÂÕâ7´óй¦ÄÜ£º
¡¡¡¡¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö
¡¡¡¡Java½«°üº¬¶Ô´´½¨¼¯ºÏÀàµÄµÚÒ»ÀàÓïÑÔÖ§³Ö¡£ÕâÒâζ׿¯ºÏÀàµÄ´´½¨¿ÉÒÔÏñRubyºÍPerlÄÇÑùÁË¡£
¡¡¡¡Ô±¾ÐèÒªÕâÑù£º
1. List<String> list = new ArrayList<String>();
2. list.add("item");
3. String item = list.get(0);
4.
5. Set<String> set = new HashSet<String>();
6. set.add("item");
7.
8. Map<String, Integer> map = new HashMap<String, Integer>();
9. map.put("key", 1);
10. int value = map.get("key");
¡¡¡¡ÏÖÔÚÄã¿ÉÒÔÕâÑù£º
1. List<String> list = ["item"];
2. String item = list[0];
3.
4. Set<String> set = {"item"};
5.
6. Map<String, Integer> map = {"key" : 1};
7. int value = map["key"];
¡¡¡¡ÕâЩ¼¯ºÏÊDz»¿É±äµÄ¡£
¡¡¡¡×Ô¶¯×ÊÔ´¹ÜÀí
¡¡¡¡JavaÖÐijЩ×ÊÔ´ÊÇÐèÒªÊÖ¶¯¹Ø±ÕµÄ£¬ÈçInputStream£¬Writes£¬Sockets£¬Sql classesµÈ¡£Õâ¸öеÄÓïÑÔÌØÐÔÔÊÐítryÓï¾ä±¾ÉíÉêÇë¸ü¶àµÄ×ÊÔ´£¬ÕâЩ×ÊÔ´×÷ÓÃÓÚtry´úÂë¿é£¬²¢×Ô¶¯¹Ø±Õ¡£
¡¡¡¡Õâ¸ö£º
1. BufferedReader br = new BufferedReader(new FileReader(path));
2. try {
3. &nbs
Ïà¹ØÎĵµ£º
JavaÖÐÒ²ÓÐÀàËÆÓÚcodesmithµÄ´úÂëÉú³É¹¤¾ß£¬²»¹ý¿ªÔ´µÄ»òÃâ·ÑµÄͦ¶à£¬ÒÔϼòµ¥½éÉÜ£º
1.spring roo
spring¹Ù·½ÏîÄ¿Ö®Ò»¡£
2.m2Spring
òËÆÉÌÒµµÄ¡£
3.springside
¹ú²úµÄ£¬×÷Õßcsdn½ÄÏ°×ÒÂ
4.rapid-framework
ºÃÏñÒ²Êǹú²úµÄ
5. seam gen
jboss seam ´úÂë× ......
package fileTest;
import java.io.*;
public class FileOperate {
public FileOperate() {
}
public static void main(String args[]){
// newFolder("D:/100");
moveFile("e:/978 ......
ÔÚAndroidµÄÓ¦ÓóÌÐò¿ª·¢ÖУ¬Í¨³£Ê¹ÓõÄÊÇJAVAÓïÑÔ£¬³ýÁËÐèÒªÊìϤJAVAÓïÑԵĻù´¡ÖªÊ¶Ö®Í⣬»¹ÐèÒªÁ˽âAndroidÌṩµÄÀ©Õ¹µÄJAVA¹¦ÄÜ¡£
ÔÚÒ»°ãµÄJAVAÓ¦ÓÃÖУ¬Èç¹ûÐèÓÃÒýÓûù´¡Àà¿â£¬Í¨³£ÐèҪʹÓÃÈçϵķ½Ê½£º
import
javax.swing.*;
ÒÔÉÏ´úÂë±íʾÁËÒýÓÃJAVAµÄGUI×é¼þSwing,javax.swing¼´JAVAÖеÄÒ»¸ö°ü¡£
androidÌá¹©Ò ......
½ñÌìÔÚÑо¿ÏîÄ¿ÖеÄÉè¼Æ˼ÏëµÄʱºò£¬µÃ³öÒ»¸ö¶Ô½Ó¿ÚºÍ³éÏóÀà·Ç³£ÐÎÏóµÄÒ»¸ö±ÈÓ÷¡£
ËûÃǶ¼ÔÚ“½¨Öþ”ÖеÃÒÔÓ¦Ó㬽ӿھÍÏñ´óÂ¥µÄͼֽ£¬³éÏóÀà¾ÍÊÇ´óÂ¥µÄ¼Ü¹¹£¬Â¥²ã¾ÍÊÇÕæÕýµÄÀà¡£
ͼֻֽÊǹ滮³ö´óÂ¥µÄÑù×Ó£¬¹æ¶¨ÁËÒª×ö³ÉÉè¼ÆÑùʽ²ÅÄÜÕæÕý´òµ½Öî¶àЧ¹û£¬µ«ÊDz¢²»¹æ¶¨ÒªÈçºÎ¸Ç£¬¶ÔÂ¥²ãµÄÉè¼ÆÒ²²»¿¼ÂÇ£¬ÓÐÁËͼֽ£¬ ......
AnnotationÊÇJava5¡¢6Ö»ºóµÄÐÂÌØÕ÷£¨ÖÐÎijÆ֮Ϊע½â£©£¬²¢ÇÒÔ½À´Ô½¶àµÄµÃµ½ÁËÓ¦Ó㬱ÈÈçSpring¡¢Hibernate3¡¢Struts2¡¢iBatis3¡¢JPA¡¢JUnitµÈµÈ¶¼µÃµ½Á˹㷺ӦÓã¬Í¨¹ýʹÓÃ×¢½â£¬´úÂëµÄÁé»îÐÔ´ó´óÌá¸ß¡£
ÕâЩ¶¼ÊÇʹÓñðÈ˶¨ÒåµÄ×¢½â£¬Ò»°ã×¢½âµÄʹÓö¼ÊÇÔÚһЩ»ù´¡¿ò¼Ü»òÕßÀà¿âÖÐÀ´¶¨ÒåµÄ£¬Òò´ËºÜÉÙ¼û¹ýÓÐÈ ......