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

javaʵÏÖðÅÝÅÅÐòËã·¨

  package ch01;
 
 public class BubbleSort
 {
    
   
    public static void main(String[] args){
        int[] values ={
                 3,1,6,2,9,0,7,4,5
        };
       
        sort(values);
        for(int i=0; i < values.length; ++i){
           
           System.out.println("Index: " + i + "Value: " + values[i]);
           
        }
       
       
    }
  
    public static void sort(int[]  values){
       
        int temp;
       
        for(int i=0 ; i < values.length ; ++i){
            for(int j=0; j <values.length - i - 1; ++j){
               if(values[j] > values[j + 1]){
                   temp = values[j];
                   values[j] = values[j + 1];
                    values[j + 1] = temp;
       &n


Ïà¹ØÎĵµ£º

javaÖÐ thisÓ÷¨

±ØÐëÓÃthis¹Ø¼ü×ÖµÄÈýÖÖÇé¿ö:
1.ÎÒÃÇÏëͨ¹ý¹¹Ôì·½·¨½«Íⲿ´«ÈëµÄ²ÎÊý¸³Öµ¸ø³ÉÔ±±äÁ¿,¶ø¹¹Ôì·½·¨µÄÐÎʽ²ÎÊýÓëÀà³ÉÔ±µÄ±äÁ¿ÃûÏàͬ,Õâʱ¾ÍÐèÒªthisÕâ¸ö¹Ø¼ü×ÖÀ´Çø±ð¾Ö²¿±äÁ¿ÓëÀà±äÁ¿;
2.¼ÙÉèÓÐÒ»¸öÈÝÆ÷ÀàºÍÒ»¸ö²¿¼þÀà,ÔÚÈÝÆ÷ÀàµÄij¸ö·½·¨ÖÐÒª´´½¨²¿¼þÀàµÄʵÀý¶ÔÏó,¶ø²¿¼þÀàµÄ¹¹Ôì·½·¨Òª½ÓÊÕÒ»¸ö´ú±íÆäËùÔÚÈÝÆ÷µÄ²ÎÊý,ÕâÊ±Ò²Ò ......

Java°²È«¹ÜÀíÆ÷Security Manager

    ÿ¸öJavaÓ¦Óö¼¿ÉÒÔÓÐ×Ô¼ºµÄ°²È«¹ÜÀíÆ÷£¬ËüÊÇ·À·¶¶ñÒâ¹¥»÷µÄÖ÷Òª°²È«ÎÀÊ¿¡£°²È«¹ÜÀíÆ÷ͨ¹ýÖ´ÐÐÔËÐн׶μì²éºÍ·ÃÎÊÊÚȨ£¬ÒÔʵʩӦÓÃËùÐèµÄ°²È«²ßÂÔ£¬´Ó¶ø±£»¤×ÊÔ´ÃâÊܶñÒâ²Ù×÷µÄ¹¥»÷¡£Êµ¼ÊÉÏ£¬°²È«¹ÜÀíÆ÷¸ù¾ÝJava°²È«²ßÂÔÎļþ¾ö¶¨½«ÄÄ×éȨÏÞÊÚÓèÀࡣȻ¶ø£¬µ±²»¿ÉÐŵÄÀàºÍµÚÈý·½Ó¦ÓÃʹÓÃJVMʱ£¬Java°²È«¹Ü ......

java±ÊÊÔ»ã×Ü£¨2£©

41¡¢ÊÇ·ñ¿ÉÒԼ̳ÐStringÀà?
StringÀàÊÇfinalÀà¹Ê²»¿ÉÒԼ̳С£
42¡¢swtichÊÇ·ñÄÜ×÷ÓÃÔÚbyteÉÏ£¬ÊÇ·ñÄÜ×÷ÓÃÔÚlongÉÏ£¬ÊÇ·ñÄÜ×÷ÓÃÔÚStringÉÏ?
switch£¨expr1£©ÖУ¬expr1ÊÇÒ»¸öÕûÊý±í´ïʽ¡£Òò´Ë´«µÝ¸ø switch ºÍ case Óï¾äµÄ²ÎÊýÓ¦¸ÃÊÇ int¡¢ short¡¢ char »òÕß byte¡£long,st ......

java ֪ʶµã×ܽá

//java½âÎö.mdbÎļþµÄ±íÃû¼¯ºÏ 
this.tableList.clear();
  
  conn = null;
  st = null;
  rs = null;
  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  String url ="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ="+dbName;// ......

[×ªÔØ] Alibaba ¸ß¼¶java³ÌÐòÔ±ÒªÇó

Ò».°¢ÀïÑз¢Ôº-º¼ÖÝ-Java¸ß¼¶³ÌÐòÔ±
ÈËÊý£º1ÈË
ѧÀú£º±¾¿Æ¼°ÒÔÉÏ
¹¤×÷µØµã£ºº¼ÖÝ
ְλÃèÊö:
1¡¢ Éè¼Æ¡¢¿ª·¢¡¢¸Ä½ø»ùÓÚJavaµÄ¹¤¾ßºÍ¿ò¼Ü£»
2¡¢ Ö¸µ¼¿ª·¢ÍŶÓʹÓù¤¾ßºÍ¿ò¼Ü£¬½â¾öÒÉÄÑÎÊÌâ¡£
ְλҪÇó£º
1¡¢ ÊìϤ²¢×ÔÈçÔËÓÃJavaÓïÑÔ¼°JDKÀà¿â£¬¾ß±¸Á¼ºÃµÄ±à³Ìϰ¹ß£»
2¡¢ ÊìϤ¶àÖÖJava¿ªÔ´ÏîÄ¿£¬¾«Í¨Ä¿Ç°Ö÷Á ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ