title: java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
body: <p>How can I fix this <code>OutOfBoundsException</code>?</p>
  
  <p>Here is the code I am using:</p>
  
  <pre><code> ResultSet rsTagCheck = stmt.executeQuery(
       "SELECT PARKING.XKRPRMT.XKRPRMT_PIDM, PARKING.XKRPRMT.XKRPRMT_STATUS, PARKING.XKRPRMT.XKRPRMT_EXPIRE_YR, PARKING.XKRPRMT.XKRPRMT_TAG FROM PARKING.XKRPRMT WHERE XKRPRMT_PIDM ='" + BannerID + "'");
   while (rsTagCheck.next()){
       String TagNum = rsTagCheck.getString("XKRPRMT_TAG");
       ArrayList&lt;String&gt; myTag = new ArrayList&lt;String&gt;();
  
       for (int i = 0; i &lt; TagNum.length(); i++){
           myTag.add(TagNum);
           myTag.get(i + i);
  </code></pre>
  
  <p>I kinda know why I am getting the error, but I am not sure how to remedy the problem.</p>