Java一般排序方法,有一定的局限性。

例:  

 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)    收藏  举报