21. +1; it's now the second link on google. – Steve Kehlet. Mar 22 '13 at 0:32 · 2. ArrayList<String> a = new ArrayList<>(Arrays.asList(words));. ... <看更多>
The removal code can be done in 1 line using the Java 8 Stream API, though I'm sure Simon's answer has better performance. static List<String[]> ... ... <看更多>