java»ñÈ¡µ±Ç°Â·¾¶
1¡¢ÀûÓÃSystem.getProperty()º¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
System.out.println(System.getProperty("user.dir"));//user.dirÖ¸¶¨Á˵±Ç°µÄ·¾¶
2¡¢Ê¹ÓÃFileÌṩµÄº¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
File directory = new File("");//É趨Ϊµ±Ç°Îļþ¼Ð
try{
System.out.println(directory.getCanonicalPath());//»ñÈ¡±ê×¼µÄ·¾¶
System.out.println(directory.getAbsolutePath());//»ñÈ¡¾ø¶Ô·¾¶
}catch(Exceptin e){}
File.getCanonicalPath()ºÍFile.getAbsolutePath()´óÔ¼Ö»ÊǶÔÓÚnew File(".")ºÍnew File("..")Á½ÖÖ·¾¶ÓÐËùÇø±ð¡£
# ¶ÔÓÚgetCanonicalPath()º¯Êý£¬“."¾Í±íʾµ±Ç°µÄÎļþ¼Ð£¬¶ø”..“Ôò±íʾµ±Ç°Îļþ¼ÐµÄÉÏÒ»¼¶Îļþ¼Ð
# ¶ÔÓÚgetAbsolutePath()º¯Êý£¬Ôò²»¹Ü”.”¡¢“..”£¬·µ»Øµ±Ç°µÄ·¾¶¼ÓÉÏÄãÔÚnew File()ʱÉ趨µÄ·¾¶
# ÖÁÓÚgetPath()º¯Êý£¬µÃµ½µÄÖ»ÊÇÄãÔÚnew File()ʱÉ趨µÄ·¾¶
±ÈÈ統ǰµÄ·¾¶Îª C:\test £º
File directory = new File("abc");
directory.getCanonicalPath(); //µÃµ½µÄÊÇC:\test\abc
directory.getAbsolutePath(); //µÃµ½µÄÊÇC:\test\abc
direcotry.getPath(); //µÃµ½µÄÊÇabc
File directory = new File(".");
directory.getCanonicalPath(); //µÃµ½µÄÊÇC:\test
directory.getAbsolutePath(); //µÃµ½µÄÊÇC:\test\.
direcotry.getPath(); //µÃµ½µÄÊÇ.
File directory = new File("..");
directory.getCanonicalPath(); //µÃµ½µÄÊÇC:\
directory.getAbsolutePath(); //µÃµ½µÄÊÇC:\test\..
direcotry.getPath(); //µÃµ½µÄÊÇ..
ÁíÍ⣺System.getProperty()ÖеÄ×Ö·û´®²ÎÊýÈçÏ£º
System.getProperty()²ÎÊý´óÈ«
# java.version
Ïà¹ØÎĵµ£º
1. ÒýÑÔ
1.1. ±àдĿµÄ
±¾ÎĵµÎª***Èí¼þÏîÄ¿¿ª·¢ÖÐJava±àÂ빤×÷ÌṩÁËÒ»¸ö¿É×ñѵĹ淶±ê×¼£¬Í¨¹ý±¾¹æ·¶µÄʹÓÿÉÒÔ½øÐиüÓÐЧµÄÉè¼Æ±àÂë¹æ·¶¹ÜÀí£¬ ʹµÃ×îÖÕµÄÈí¼þ²úÆ·¾ßÓÐÁ¼ºÃµÄÉè¼Æ½á¹¹ºÍͳһµÄ´úÂë·ç¸ñ£¬ÇÒ´úÂë¾ßÓпɶÁÐÔÇ¿¡¢Ò×ά»¤µÈÌص㡣
Öƶ¨±¾±à³Ì¹æ·¶µÄÄ¿µÄÊÇΪÁËÌá¸ßÈí¼þ¿ª·¢Ð§Âʼ°Ëù ......
Ê×ÏȽéÉÜ Ò»¿îСÇɵÄJava IDE - Gel
ÔÚ¡¶³ÌÐòÔ±¡·ÔÓÖ¾2006ÄêµÚ4ÆÚ¿´µ½½éÉÜһƪ½éÉÜ Free Java IDEµÄÎÄÕ£¬ÀïÃæÌáµ½ÁËGelÕâ¸ö±àÒëÆ÷¡£ÓÚÊÇÉÏÍøËÑÁËһϣ¬¹ûÈ»ÕÒµ½ÁË£¬¹Ù·½ÍøÖ·ÊÇ£ºhttp://memescape.co.uk/gexperts/¡£×îеİ汾ÊÇRC39£¬Ìå»ýºÜС£¬°²×°ÎļþÖ» ......
ÕâÁ½Ìì×ÜÊÇתÌû×ÓÁË£¬²»¹ý¿´¹ýºó£¬ÎÒÊÜÒæ·Ëdz£¡£¡
javaÖÐÖØдºÍÖع¹¶þÕߵĶ¨ÒåºÍÇø±ð£¿
Öع¹¿É²»ÊÇ“ÖØÔع¹Ô캯Êý”µÄ¼òд¡£
Èí¼þÖع¹ºÍÖØдѹ¸ù²»ÊÇÒ»¸ö²ã´ÎÉϵĶ«Î÷£¡
Èí¼þÖع¹ÊÇ˵³ÌÐòԱΪÁË¶Ô ÒÑÓгÌÐòÔÚ¾¡Á¿²»¸Ä±ä½Ó¿ÚµÄÇ°ÌáÏ ½øÐÐÈçÏ´¦Àí ¶ø×öµÄ ÖØбàд´úÂëµÄ¹¤×÷
1¡¢È¥³ýbug
2¡¢Ìá¸ßЧ ......
java.applet Ìṩ´´½¨AppletµÄÀàÒÔ¼°ÓÃÓÚAppletºÍAppletÉÏÏÂÎÄ£¨Applet Context£©Í¨ÐŵÄÀà¡£
java.awt °üº¬ËùÓд´½¨Óû§½Ó¿Ú£¨½çÃ棩¡¢»æÖÆͼÏñµÄÀà¡£
java.awt.color ÌṩÑÕÉ«¿Õ¼äµÄÀà
java.awt.datatransfer ÌṩӦÓÃÄÚºÍÓ¦Óü䴫ÊäÊý¾ÝµÄ½Ó¿ÚºÍÀà¡£
java.awt.dnd ÍÏק¹¦ÄÜÖ§³ÖÀà¿â£¨ÍÏקÊÇÔÚÐí¶àGUIÌṩµÄÒ»ÖÖÔÚÁ½¸ö ......
ÔÌûµØÖ·£º http://emy.javaeye.com/blog/191659
1. Java
ÓïÑÔ»ù´¡
̸µ½Java
ÓïÑÔ»ù´¡Ñ§Ï°µÄÊé¼®£¬´ó¼Ò¿Ï¶¨»áÍƼöBruce EckelµÄ¡¶Thinking in Java
¡·¡£ËüÊÇÒ»±¾Ð´µÄÏ൱Éî¿ÌµÄ¼¼ÊõÊé¼®£¬Java
Óï
ÑÔ»ù´¡²¿·Ö»ù±¾Ã»ÓÐÆäËüÈκÎÒ»±¾Êé¿ÉÒÔ³¬Ô½Ëü¡£¸ÃÊéµÄ×÷ÕßBruce EckelÔÚÍøÂçÉϱ»³ÆΪÌì²ÅµÄͶ»úÕߣ¬×÷Õߵġ¶Thinking ......