title: Appending Arraylist to TextView
body: <p>I am trying to add Arraylist to Text View But it gives an error while adding it to TextView
  Declaration of Arraylist is:</p>
  
  <pre><code>    ArrayList&lt;Integer&gt; a=new ArrayList&lt;Integer&gt;();
  
  
      1.       int arraylistSize = a.size();
  
      2.       for(int i = 0; i &lt; arraylistSize; i++){
  
      3.  textview1.setText(a[i]);
  
      4.  textview1.setText("*");
  </code></pre>
  
  <p>At line 3 it gives "The type of the expression must be an array type but it resolved to ArrayList"</p>