用java将两个乱序数组合成一个有序数组代码怎么写

日期:2015-06-28 00:34:58 人气:1

用java将两个乱序数组合成一个有序数组代码怎么写

可供参考,代码如下: import java.util.ArrayList;import com.demo.test.MaoPao;public class ArrayListAdd { public static void main(String[] args) { int a[] = { 1, 6, 9, 4, 5 }; int b[] = { 7, 0, 3, 2, 8 }; ArrayList alist = new ArrayList(a.length + b.length); for
    A+
热门评论