Namely, without referencing the same object, I need to copy values of elements of one list into another list. These are the lists:
List listA = ne
List lista = new ArrayList(); List listb = new ArrayList(); //copy no reference lista.adAll(new ArrayList<>(listb));
This code block works for me!