纪念博客开通

很早之前就听说博客了,一直想有个自己的博客。

在这之前总是在博园看别人的文章,这次我也可以把自己的文章与大家分享了,非常兴奋。

冒泡排序来纪念一下吧..

public void bubble(int[] array){

  for(int i=0;i<array.length-1;i++){

    for(int j=0;j<array.length-1-i;j++){

      if(a[j]>a[j+1]){

        int temp=a[j];

        a[j]=a[j+1];

        a[j+1]=temp; 

      }     

    }

  }  

}

原文地址:https://www.cnblogs.com/sansyou/p/3956080.html