how to append to a list on a different .java code example Example: java add a list to a list List mylist.addAll(secondList);