String[] a = { "0", "1", "2" };
          String[] b = { "0", "1", "2" };

          List list = new ArrayList(Arrays.asList(a));
          list.addAll(Arrays.asList(b));

          String[] aa= new String[list.size()];          
          list.toArray(aa);
          
          Arrays.sort(aa);
          System.out.println(Arrays.toString(aa));

 

posted on 2016-02-24 20:22  网络终结者  阅读(157)  评论(0编辑  收藏  举报