ListUtils { public static String andJoin(Object first, Object[] os) { return andJoin(first, asList(os)); } private  ListUtils(); static String andJoin(Object first, Object[] os); static String andJoin(Object first, List<?> os); static String join(String sep, Object[] os); static String join(String sep, List<?> os); static List<T> concat(List<T> a, List<T> b); static EnumSet<T> concat(EnumSet<T> a, EnumSet<T> b);  }
@Test void andJoinArray() { assertEquals(String.format("start%n1%n2"), andJoin("start", new Integer[]{1, 2})); }
@Test void andJoinList() { assertEquals(String.format("start%n1%n2"), andJoin("start", asList(1, 2))); }