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
Try to use this, while the answers given by another guys are totally fine. But per my option, the following would be the best way:
List listB = new ArrayList(listA);