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

javaÊý×é

Êý×éÊôÒýÓÃÀàÐÍ£¬Êý×éÐÍÊý¾ÝÊǶÔÏó(object)£¬Êý×éÖеÄÿ¸öÔªËØÏ൱ÓڸöÔÏóµÄ³ÉÔ±±äÁ¿
Êý×éÖеÄÔªËØ¿ÉÒÔÊÇÈκÎÊý¾ÝÀàÐÍ£¬°üÀ¨»ù±¾ÀàÐͺÍÒýÓÃÀàÐÍ
¼ÇסÊý×éÊ×ÏÈ·ÖÅä¿Õ¼äÔÙ¸³Öµ£¡
¶¯Ì¬³õʼ»¯£º¾ÍÊÇÏÈ·ÖÅä¿Õ¼äÔÙ¸³³õÖµ£»
¾²Ì¬³õʼ»¯£º¶¨ÒåÊý×éͬʱ¾ÍΪÊý×éÔªËØ·ÖÅä¿Õ¼ä²¢¸³Öµ¡£
1һάÊý×éµÄÉùÃ÷
һάÊý×éµÄÉùÃ÷£ºtype var[]»òtype[] var
      ×¢Ò⣺Êý×éÉùÃ÷ÊDz»ÄÜÖ¸¶¨Æä³¤¶È£¬Èç int a[5];//·Ç·¨
JavaÖÐʹÓùؼü×Önew ´´½¨Êý×é¶ÔÏó£ºint[] s;
                                  s = new int[10];
2һάÊý×éµÄ´´½¨
´´½¨»ù±¾Êý¾ÝÀàÐÍһάÊý×é(newºóÃæµÄÖÐÀ¨ºÅÒ»¶¨ÒªÓÐÖµ)£º
      public class Test{
              public static void main(String args[]){
                    int[] s;
                   s = new int[10];//´´½¨Ò»¸öINTÀàÐ͵ÄÊý×飬²¢ÎªËü·ÖÅä10¸ö¿Õ¼ä
                    for ( int i=0; i<10; i++ ) {
                         s[i] =2*i+1;
                 System.out.println(s[i]);
                    }
             }
       }
´´½¨ÔªËØÎªÒýÓÃÊý¾ÝÀàÐ͵ÄÊý×飺
    class MyDate{
            private int day;
            private int month;
    &nbs


Ïà¹ØÎĵµ£º

½âÎöJavaÀàºÍ¶ÔÏóµÄ³õʼ»¯¹ý³Ì

ÀàµÄ³õʼ»¯ºÍ¶ÔÏó³õʼ»¯ÊÇ JVM ¹ÜÀíµÄÀàÐÍÉúÃüÖÜÆÚÖзdz£ÖØÒªµÄÁ½¸ö»·½Ú£¬Google ÁËÒ»±éÍøÂ磬ÓйØÀà×°ÔØ»úÖÆµÄÎÄÕµ¹ÊDz»ÉÙ£¬È»¶øÀà³õʼ»¯ºÍ¶ÔÏó³õʼ»¯µÄÎÄÕ²¢²»¶à£¬ÌرðÊÇ´Ó×Ö½ÚÂëºÍ JVM ²ã´ÎÀ´·ÖÎöµÄÎÄÕ¸üÊÇÏÊÓÐËù¼û¡£
±¾ÎÄÖ÷Òª¶ÔÀàºÍ¶ÔÏó³õʼ»¯È«¹ý³Ì½øÐзÖÎö£¬Í¨¹ýÒ»¸öʵ¼ÊÎÊÌâÒýÈ룬½«Ô´´úÂëת»»³É JVM ×Ö½ÚÂëºó£¬ ......

¹ØÓÚÁùÖÖJavaÒì³£´¦Àí³ÌÐòµÄªϰ

      ¿´µ½Ò»ÆªÎÄÕ¸оõºÜºÃ£¬×ª¹ýÀ´ÁË...  http://bbs.chinaitlab.com/thread-167286-1-2.html
      Äã¾õµÃ×Ô¼ºÊÇÒ»¸öJavaר¼ÒÂð£¿ÊÇ·ñ¿Ï¶¨×Ô¼ºÒѾ­È«ÃæÕÆÎÕÁËJavaµÄÒì³£´¦Àí»úÖÆ£¿ÔÚÏÂÃæÕâ¶Î´úÂëÖУ¬ÄãÄܹ»Ñ¸ËÙÕÒ³öÒì³£´¦ÀíµÄÁù¸öÎÊÌâÂð£¿
1 OutputStreamWri ......

java¹¹Ô캯Êý

java¹¹Ô캯Êý
ÆäÓï·¨¸ñʽÈçÏ£º
   < modifiers>  <class_name>([< argu_list>]) {[< statements>]}
×Ô¶¨Òå¹¹Ôì·½·¨£º·½·¨ÃûÓëÀàͬÃû£¬Ê××Öĸ´óд£¡Ã»Óзµ»ØÀàÐÍ¡£³ý´ËÖ®ÍâÆäËû¶¼¸úÆÕͨ·½·¨Ò»Ñù¡£
ĬÈϹ¹Ô캯Êý£ºÃ»ÓÐÐβÎûÓз½·¨Ì壡È磺public Person() {}
¶ÁÏÂÃæµÄÀý×Ó£¬Ìå ......

java junit µ¥Ôª²âÊÔ

½øÐе¥Ôª²âÊÔÄ¿µÄ

µ¥Ôª²âÊÔ±£Ö¤¾Ö²¿´úÂëµÄÖÊÁ¿
µ¥Ôª²âÊÔ¸ÄÁ¼ÏîÄ¿´úÂëµÄÕûÌå½á¹¹
µ¥Ôª²âÊÔ½µµÍ²âÊÔ¡¢Î¬»¤Éý¼¶µÄ³É±¾
µ¥Ôª²âÊÔʹ¿ª·¢¹ý³ÌÊÊӦƵ·±±ä»¯µÄÐèÇó
µ¥Ôª²âÊÔÓÐÖúÓÚÌáÉý³ÌÐòÔ±µÄÄÜÁ¦
µ¥Ôª²âÊÔ×Å
Ó¦¸ÃÓÉ¿ª·¢²¿ÃŽøÐе¥Ôª²âÊÔ
ÓɲâÊÔ²¿ÃŽøÐе¥Ôª²âÊÔµÄÎÊÌ⣺´ú¼Û¸ß£¬ÈËÊÖ²»×㣬µ¢ÎóÁ˲âÊÔ²¿ÃÅ¶ÔÆäËû²âÊÔµÄ× ......

JAVA Éú³ÉËæ»úÊýÊý×é

Ò»¡¢JAVA»ñÈ¡Ëæ»úÊýµÄ·½·¨
//ʹÓÃjava.lang.MathÀàµÄrandom()·½·¨
double a = Math.random();
System.out.println("0.0-1.0µÄËæ»úÊý£º" + a);
double b = Math.random()*100;
System.out.println("0.0-100.0µÄËæ»úÊý£º" + b);
int c = (int)(Math.random()*100);
System.out.println("0-100µÄËæ»úÕûÊý£º" + c);  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ