java最快速的冒泡排序

Integer[] cum={11,3,34,32,45,4,5,223,6};
System.out.println(Arrays.toString(cum));

Arrays.sort(cum);
System.out.println(Arrays.toString(cum));

Arrays.sort(cum,Collections.reverseOrder());
System.out.println(Arrays.toString(cum));

这里Collections.reverseOrder() 是倒序,只能用Integer

posted @ 2020-10-22 14:32  (龍)  阅读(146)  评论(0编辑  收藏  举报