public static <T> T[] concat(T[] first, T[] second) { return Stream.concat( Stream.of(first), Stream.of(second) ).toArray(i -> (T[]) Arrays.copyOf(new Object[0], i, first.getClass())); }
原文地址:https://www.cnblogs.com/R4mble/p/8407908.html
时间: 2024-11-05 18:29:07