@Test public void testList() { final List<String> list = new ArrayList<String>(); list.add("hello"); list.add("world"); assertEquals(list, Util.list("hello", "world")); }
public static <A> List<A> list(A... elements) { final List<A> list = new ArrayList<A>(elements.length); for (A element : elements) { list.add(element); } return list; }
Util { public static <A> List<A> list(A... elements) { final List<A> list = new ArrayList<A>(elements.length); for (A element : elements) { list.add(element); } return list; } }
Util { public static <A> List<A> list(A... elements) { final List<A> list = new ArrayList<A>(elements.length); for (A element : elements) { list.add(element); } return list; }  }
Util { public static <A> List<A> list(A... elements) { final List<A> list = new ArrayList<A>(elements.length); for (A element : elements) { list.add(element); } return list; }  static List<A> list(A... elements); static Set<A> set(A... elements); static A execute(ExceptionAction<A> action); }
Util { public static <A> List<A> list(A... elements) { final List<A> list = new ArrayList<A>(elements.length); for (A element : elements) { list.add(element); } return list; }  static List<A> list(A... elements); static Set<A> set(A... elements); static A execute(ExceptionAction<A> action);  }