title: Copy references to new array list and delete in Java
body: <p>I have one array list, studentsList, like the following:</p>
  
  <pre><code>class Student{
  String name;
  List&lt;Subject&gt; subjects;
  }
  </code></pre>
  
  <p>I want to copy references to these objects in another list say studentsListCopy. When I make any changes in the Student objects in studentsListCopy, say change the name, it should also reflect in the original list but if I delete the student object from studentsListCopy, it should not get deleted from the original list. How can I achieve this ?</p>