数组排序

冒泡排序

   int[] arr={2,4,5,6,1,12,3,4,5,6};
               int temp=0;
               for(int i=1;i

选择排序

       int[] arr1={2,4,5,6,7,2,3,4,5,6};
            int temp1=0;
            for(int i=0;i

你可能感兴趣的:(数组排序)