import org.apache.commons.collections.CollectionUtils;
import java.util.ArrayList;
import java.util.Collections...;
import java.util.List;
public class CopyTest {
public static void main(String[] args) {...List list = new ArrayList();
for (int i = 0; i < 10; i++) {
list.add(i...);
System.out.println("原list值:" + list);
System.out.println("新list值:" + newList...);
}
}
原list值:[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
新list值:[10, 1, 2, 3, 4, 5, 6, 7, 8, 9]