how do i add list of array object into list in java code example Example: java add a list to a list List mylist.addAll(secondList);