溫馨提示:您的每一次轉載,體現了我寫此文的意義!!!煩請您在轉載時注明出處http://www.aygfsteel.com/sxyx2008/謝謝合作!!!

          雪山飛鵠

          溫馨提示:您的每一次轉載,體現了我寫此文的意義!!!煩請您在轉載時注明出處http://www.aygfsteel.com/sxyx2008/謝謝合作!!!

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            215 Posts :: 1 Stories :: 674 Comments :: 0 Trackbacks

          公告

          Locations of visitors to this page

          常用鏈接

          留言簿(18)

          隨筆分類(222)

          隨筆檔案(214)

          文章檔案(1)

          收藏夾(67)

          我的鏈接

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          package com.mongodb;

          import java.util.Arrays;

          public class MaoPao {

              
          public static void main(String args[]) {
                  
          int temp;
                  
          int[] s = { 235125978211007966 ,200,365,420,862};
                  
          for(int j=1;j<=s.length;j++){
                      
          for(int i=0;i<s.length-1;i++){
                          
          if(s[i]>s[i+1]){
                              temp
          =s[i];
                              s[i]
          =s[i+1];
                              s[i
          +1]=temp;
                          }
                      }
                  }
                  System.out.println(
          "最終順序:-------------------");
                  System.out.println(Arrays.toString(s));
              }
          }
          posted on 2012-03-12 16:06 雪山飛鵠 閱讀(316) 評論(0)  編輯  收藏 所屬分類: javase
          主站蜘蛛池模板: 弋阳县| 清新县| 文登市| 盘锦市| 张家口市| 白城市| 介休市| 铜山县| 嘉黎县| 肃北| 宝应县| 穆棱市| 克山县| 谷城县| 偃师市| 湖北省| 新蔡县| 庆安县| 阿巴嘎旗| 城步| 南郑县| 隆安县| 萝北县| 紫阳县| 余庆县| 遂平县| 和硕县| 中方县| 托克托县| 观塘区| 海门市| 乡城县| 伊宁市| 喀喇沁旗| 楚雄市| 久治县| 临漳县| 阿鲁科尔沁旗| 策勒县| 日土县| 曲周县|