1.

How To Join Two Or More Arraylists?

Answer»

List provides a method addAll to join TWO or more lists in JAVA

If you have one list cityList and ANOTHER List secondCityList then you can join them using addAll LIKE this - 

cityList.addAll(secondCityList);

List provides a method addAll to join two or more lists in Java. 

If you have one list cityList and another List secondCityList then you can join them using addAll like this - 

cityList.addAll(secondCityList);



Discussion

No Comment Found