title: Android Dynamic Array
body: <p>I am parsing an XML file through Android Pull Parser technique. First, have a look at the below XML file:</p>
  
  <pre><code>&lt;childs&gt;
      &lt;students&gt;
          &lt;name&gt; hello &lt;/name&gt;
          &lt;address&gt; xyz &lt;/address&gt;
      &lt;/stdents&gt;      
  
      &lt;students&gt;
          &lt;name&gt; abc &lt;/name&gt;
          &lt;address&gt; def &lt;/address&gt;
      &lt;/stdents&gt;      
  
  &lt;/childs&gt;
  </code></pre>
  
  <p>Consider that I'm parsing the above file. Now, my problem is that I want to create a separate array for name and address. So while parsing, I want to store 1st student's data in <code>name[0]</code> and <code>address[0]</code> and the next student's data in <code>name[1]</code> and <code>address[1]</code>. In short, <strong>array size is extending as more data is parsed.</strong></p>
  
  <p><strong>Is there any way to do so? I mean to create a dynamic extendable array?</strong> Or if there is another way to do so then please help me to fight with this problem.</p>