java clone collection code example
Example 1: copy collection java
Collections.copy(List destination, List source);
Example 2: java copy list
List<Object> copy = new ArrayList<>(original_list);
Collections.copy(List destination, List source);
List<Object> copy = new ArrayList<>(original_list);