title: Android - How to access an element data of a list that's inside another list?
body: <p>Hy guys, I have encountered an issue with the lists.</p>
  
  <p>What I want to do is to have a list of BasicNameValuePair elements, with this parameters:</p>
  
  <ul>
  <li>previewUrl</li>
  <li>artistName</li>
  <li>trackName</li>
  <li>artistViewUrl</li>
  <li>artworkUrl100</li>
  </ul>
  
  <p>I retrieve these informations from a JSON file.</p>
  
  <p>I have to store this list INSIDE another list, which stores 10 elements of this kind.</p>
  
  <p>I declared this two lists:</p>
  
  <ol>
  <li><code>public static List&lt;NameValuePair&gt; songsInfo = new ArrayList&lt;NameValuePair&gt;(5);</code></li>
  <li><code>static List dieciCanzoni = new ArrayList(10);</code></li>
  </ol>
  
  <p>So the #2 must contain 10 elements of the #1.</p>
  
  <p>How can I access data contained in the list inside the other list?</p>
  
  <p>Please give me some advices, thank you all!</p>
  
  <p><strong>EDIT:
  Maybe I've found the solution!</strong></p>
  
  <p>Like suggested above, I've created generic String Lists and the code to control the data inside is this:</p>
  
  <p>dieciCanzoni.get(i).get(5).compareTo("previewUrl")==0</p>
  
  <p>I can use get(5) because I know that it will be the last value in the list, right?</p>