title: Adding strings to ArrayList from strings.xml
body: <p>I have been parsing html to get the title of a specific link. I am able to add this string to the string array but I want to add a string from a string array which resides in my strings.xml resource.  </p>
  
  <pre><code>int i = 1;
  String time = null;
  for (Element title : rels) {
      time = getResources().getStringArray(R.array.times)[i];
      titleArray.add(time + title.attr("title"));
      i++;
  }
  </code></pre>
  
  <p>Here is my strings resource:</p>
  
  <pre><code>&lt;string-array name="times"&gt;
      &lt;item name="1"&gt;12:00 am&lt;/item&gt;
      &lt;item name="2"&gt;12:30 am&lt;/item&gt;
      &lt;item name="3"&gt;1:00 am&lt;/item&gt;
      &lt;item name="4"&gt;1:30 am&lt;/item&gt;
      &lt;item name="5"&gt;2:00 am&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>I'm getting this error in LogCat:  </p>
  
  <pre><code>04-06 01:44:08.837: E/AndroidRuntime(30938): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=48; index=48
  </code></pre>
  
  <p>I have 48 strings in this string array, which is exactly the same number of strings I'm parsing from the html.  I'm not sure why my app is force closing.  Does anyone know?</p>