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

Java»ù±¾Êý¾ÝÀàÐ͵ÄÔËËã

¡¾Ö÷Ìâ¡¿  Java»ù±¾Êý¾ÝÀàÐ͵ÄÔËËã
¡¾¹Ø¼ü×Ö¡¿java »ù±¾Êý¾ÝÀàÐÍ
¡¾ÎÊÌâÃèÊö¡¿Çë¿´Èç¹ûÒ»¶Î´úÂë,Èç¹û²»ÔÚeclipseÀïÔËÐÐ,Çëд³öÊä³ö½á¹û
                  public static void main(String[] args) {
                            int j = 0;
                            for(int i = 0; i < 100 ; i ++){
                               j = j ++;
                            }
                            System.out.println(j);
                   }
          ºÜ¶àÈ˶¼»áºÁ²»ÓÌԥ˵ÊÇ100°É!¸æËßÄã,´ð°¸ÊÇ0
¡¾ÎÊÌâ·ÖÎö¡¿
          ÕâºÍJAVAµÄ»ù±¾Êý¾ÝÀàÐ͵ÄÔËËãÓйØ,JAVAµÄ»ù±¾Êý¾ÝÀàÐͶ¼ÊÇÖµÒýÓõÄ,Õâ¸ú¶ÔÏó²»Ò»Ñù.ͬÑù,ÔÚÄã¶Ô»ù±¾Êý¾ÝÀàÐͽøÐвÙ×÷ºó,Ëû»áÉú³ÉÔÚÄÚ´æÖл®·Ö³öÁíÍâÒ»¿éÄÚ´æÇø.Ê×ÏȸտªÊ¼J = 0 , ÔÚJ = J++µÄʱºò, µÈºÅÇ°ÃæµÄÄǸöJÒѾ­²»ÊÇJÉùÃûʱµÄÄÇ¿éÄÚ´æÇøÁË,JVMΪËûÖØ
ÐÂΪËû·ÖÅäÒ»¿éеÄÄÚ´æÇø.±ÈÈç˵,int j = 0 ʱ,jµÄÄÚ´æµØַΪ00xx01,ֵΪ0¡£ÄÇô¾­¹ýµÚһѭ»·µÄÒÔºóÇ°ÃæÄǸöJÄÚ´æµØַΪ00xx02,ֵΪ0£¬¶øºóÃæÄǸöJ£¨ÄÚ´æµØÖ·00xx01£©Ôò»á½øÐÐ++²Ù×÷£¬´ËʱËûµÄֵΪ1£¬²»¹ýËûÒѾ­²»ÄÜÓ°Ï쵽ǰÃæJµÄÖµÁË£¬´ËʱJµÄÄÚ´æµØÖ·¾ÍÒѾ­ÊǵȺÅÇ°ÃæµÄÄǸöJµÄÄÚ´æµØÖ·ÁË


Ïà¹ØÎĵµ£º

java¼¯ºÏÏê½â

Ä¿    ¼
1        ¼¯ºÏ¿ò¼Ü... 2
1.1      ¼¯ºÏ¿ò¼Ü¸ÅÊö... 2
1.1.1      ÈÝÆ÷¼ò½é... 2
1.1.2      ÈÝÆ÷µÄ·ÖÀà... 4
1.2      Collection. 5
1.2.1  ......

JavaÎļþÖÐΪʲô»áÓÐserialVersionUID

һЩjavaÀàÖÐΪʲôÐèÒªÖØÔØ serialVersionUID ÊôÐÔ¡£
ÔÚJavaÖУ¬Èí¼þµÄ¼æÈÝÐÔÊÇÒ»¸ö´óÎÊÌ⣬ÓÈÆäÔÚʹÓõ½¶ÔÏó´®ÐÐÐÔµÄʱºò£¬ÄÇôÔÚijһ¸ö¶ÔÏóÒѾ­±»´®Ðл¯ÁË£¬¿ÉÊÇÕâ¸ö¶ÔÏóÓÖ±»Ð޸ĺóÖØв¿ÊðÁË£¬ÄÇôÔÚÕâÖÖÇé¿öÏ£¬ ÓÃÀÏÈí¼þÀ´¶ÁÈ¡ÐÂÎļþ¸ñʽËäÈ»²»ÊÇʲôÄÑÊ£¬µ«ÊÇÓпÉÄܶªÊ§Ò»Ð©ÐÅÏ¢¡£
serialVersionUID À´½â¾öÕâЩΠ......

java»ñÈ¡µ±Ç°Â·¾¶[ת]

java»ñÈ¡µ±Ç°Â·¾¶[ת]
¹Ø¼ü×Ö: java ·¾¶
java »ñÈ¡µ±Ç°Â·¾¶
 
1 ¡¢ÀûÓà System.getProperty() º¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
System.out.println(System.getProperty("user.dir"));//user.dir Ö¸¶¨Á˵±Ç°µÄ·¾¶
 
2 ¡¢Ê¹Óà File ÌṩµÄº¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
File directory = new File("");// É趨Ϊµ±Ç°Îļþ ......

javaµÝ¹éʵÏÖµÄÃÔ¹¬ÓÎÏ·

public class Migong {
 
    private int gard[][]={  {1,1,1,1,0,1,1,1},
                         {0,0,0,1,1,1,1,1},
       ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ