title: How to get data from a specific ArrayList row using with a loop?
body: <p>How do I get data from a specific ArrayList row using a loop? I've added those value into <strong>ArrayList</strong> as follow.</p>
  
  <pre><code>myArrayList.add("ID007");
  myArrayList.add("PPShein");
  myArrayList.add("Male");
  myArrayList.add("7-Apr-1983");
  </code></pre>
  
  <p>I want to do something like this:</p>
  
  <pre><code>for (i=0; i &lt; myarr.size(); i++)
  {
      getName = myarr[2].value();
  }
  </code></pre>
  
  <p>It's because of I want to display as follow.</p>
  
  <pre><code>myTextView.setText(getName); //myName : "ppshein"
  </code></pre>