摘要:
/**功能:冒泡排序,从小到大输出。*/public class Demo { public static void main(String[] args) { int[] b=new int[9]; b=new int[]{8,3,6,1,9,5,4,2,7}; bubble_sort(b,9); 阅读全文
posted @ 2017-12-10 22:02
简简单单zjl
阅读(1251)
评论(0)
推荐(0)
摘要:
/**功能:冒泡排序,从小到大输出。 思想:第一轮从第一个数往后比较,直到将最大的数放到最后;第二轮将次大数放到倒数第二位置;以此类推。*/public class Demo { public static void main(String[] args) { int[] b=new int[9]; 阅读全文
posted @ 2017-12-10 20:13
简简单单zjl
阅读(401)
评论(0)
推荐(0)

浙公网安备 33010602011771号