数组合并

public static <T> T[] concat(T[] first, T[] second) {
	     T[] result = Arrays.copyOf(first, first.length + second.length);
	     System.arraycopy(second, 0, result, first.length, second.length);
	     return result;
	}

  

posted @ 2022-08-02 21:41  信铁寒胜  阅读(13)  评论(0编辑  收藏  举报