摘要: 例: public static void main(String[] args) { int[] a ={3,1,4,22,0}; Arrays.sort(a); for (int i = 0; i < a.length; i++){ System.out.print(a[i]+" "); } } 阅读全文
posted @ 2017-04-07 12:16 阿東_小菜 阅读(123) 评论(0) 推荐(0)
摘要: 例: public static void main(String[] args) { int[] a = {3,1,4,22,0}; for (int i = 0; i < a.length-1;i++) { for (int j = 0; j < a.length-1-i;j++) { if ( 阅读全文
posted @ 2017-04-07 12:09 阿東_小菜 阅读(113) 评论(0) 推荐(0)