4 ms·
For lists, you can also do this: List<String> strings = new ArrayList<String> (Arrays.asList("one", "two", "three"));
by Sandman 17y ago
For lists, you can also do this:
List<String> strings =
new ArrayList<String> (Arrays.asList("one", "two", "three"));