public static < T > List < T > concat ( List < T > l1 , List < T > l2 ) { ArrayList < T > l = new ArrayList <> ( l1 ) ; l . addAll ( l2 ) ; l . trimToSize ( ) ; return l ; }
Concatenates two lists into one