title: How to remove an item from a List<Integer> that is inside an array?
body: <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      TextView t;
      List&lt;Integer&gt; listA = Arrays.asList(0,1,2,3);
      List&lt;Integer&gt; listB = Arrays.asList(0,2,4,6,8);
      List&lt;Integer&gt;[] listC = (List&lt;Integer&gt;[])new List[2];
  
      t = (TextView)findViewById(R.id.textView1);
      listC[0] = listA;
      listC[1] = listB;
      t.setText("Result: "+ listC[0].get(1)); //Result: 1
      listC[0].remove(0); //i get an error in this line
  }
  </code></pre>
  
  <p>I am very confused as of why I don't get an error with: listC[0].get(1)
  but something's wrong with: listC[0].remove(0);
  Is there something wrong with my codes? Is there a more efficient way? Please help me! Thank you so much!</p>