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

Java 7ÒѾ­Íê³ÉµÄÆß´óй¦ÄÜÔ¤ÀÀ

 ×î½üµÄ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 BufferedReader(new FileReader(path));  try {     return br.readLine();  } finally {     br.close();  } 
±ä³ÉÁËÕâ¸ö£º
try (BufferedReader br = new BufferedReader(new FileReader(path)) {     return br.readLine();  } 
Äã¿ÉÒÔ¶¨Òå¹Ø±Õ¶à¸ö×ÊÔ´£º
try&n


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

java »·¾³±äÁ¿µÄÅäÖà ºÍTomcatµÄÅäÖÃ

 javaµÚÒ»²½——JDK»·¾³±äÁ¿ÅäÖÃ
ÏÂÔغõÄJDKÊÇÒ»¸ö¿ÉÖ´Ðа²×°³ÌÐò£¬Ë«»÷°²×°¡£½«°²×°Â·¾¶¸ÄΪ£ºC:\jdk1.6.0£¨µ±È»ÆäËû·¾¶Ò²¿ÉÒÔ£©¡£
JDK°²×°Íê³ÉÖ®ºóÎÒÃÇÀ´ÉèÖû·¾³±äÁ¿£º
ÎҵĵçÄÔµãÓÒ¼ü£¬Ñ¡Ôñ“ÊôÐÔ”£¬Ñ¡Ôñ“¸ß¼¶”±êÇ©£¬½øÈë»·¾³±äÁ¿ÉèÖ㬷ֱðÉèÖÃÈçÏÂÈý¸ö»·¾³±äÁ¿£º
£¨1£©É ......

´«ÖDz¥¿Íjavaѧϰ2

½ñÌìºÜ¸ßÐË¿´ÁËÕÅТÏéÀÏʦ½²µÄJava»ù´¡ÊÓƵ¡£
   
 
               ÕÅÀÏʦÊ×ÏȽ²µÄÊÇfinal¡¢super¡¢this staticµÄÓ÷¨£¬ÕÅÀÏʦÊÇÕâÑù½²µÄ£¬ÎÒ×öÁËһЩ¼òµ¥µÄ¼Ç¼£º
1.         ......

´«ÖDz¥¿Íjavaѧϰ4

½ñÌìÎÒѧϰÁË·´ÉäÓë¶àÏ̵߳Ä֪ʶ
 
·´É䣺Class cls1=Date.class//×Ö½ÚÂë1£»
         Class cls2=Person.class//×Ö½ÚÂë2£»
 
P1.getClass();//µÃµ½×Ö½ÚÂë
Class.forName(“java.lang.String”) //µÃµ½Õâ¸öÀàµÄ×Ö½ÚÂë
 
ºǫ́Ïß³ÌÓëÁªºÏÏß³Ì
l & ......

phpºÍjava¹ØÓÚĿ¼Ê÷£¨ÁгöijһĿ¼ÏÂÎļþ½á¹¹£©

javaµÄд·¨
/**
*
* @param location
* @param nameList±£´æ½á¹ûµÄ£¡
*/
public void listDict(String location, List<String> nameList) {
File fileList = new File(location);
if (fileList.isDirectory()) {
File[] files = fileList.listFiles();
for (File f : files) {
i ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ