ArrayList<String> concat(ArrayList<String> a, ArrayList<String> b) { ArrayList<String> out = new ArrayList<String>(); out.addAll(a); out.addAll(b); return out; }
Programming Tips - Java: Best way to concatenate two ArrayLists
Date: 2012nov2
Language: java
Keywords: add, attach, join
Q. Java: Best way to concatenate two ArrayList<>s
A. Here's a method that does that: