1List<String> firstList=Arrays.asList("Hello","World");
2List<String> secondList=new ArrayList<>(firstList);
3System.out.println(firstList.equals(secondList));//true
4secondList.add("other element");
5System.out.println(firstList.equals(secondList));//false