how to add items in a list java code example Example: java add a list to a list List mylist.addAll(secondList);