1List<Something> original=new ArrayList<>();
2//insert elements
3List<Something> copy=new ArrayList<>(original);//create copy here
4System.out.println(copy.equals(original));//true because the copy has the same elements
5System.out.println(copy==original);//false because it is another List