how to add two arraylists in java code example Example: add two arraylist oneList.addAll(secondList);