arraylist size exception
<pre><code>for(int i=0;i&lt;charset.size();i++)
       {
        for(int j=0;i&lt;charset.size();j++)
        {
         for(int k=0;k&lt;charset.size();k++)    
         {
       String plaintext= charset.get(i)+charset.get(j)+charset.get(k); 


       String hashtext=CreateHash.returnString(plaintext);

       BufferedWriter bw = new BufferedWriter(new FileWriter("/root/MD5List.txt", true)); //opens file
       bw.write(plaintext+" = "+hashtext); 
       bw.newLine();
       bw.close();   
         }
        }
       }
</code></pre>

<p>When I run this program, I get a stacktrace of: (the arraylist size is 10 by the way) the variable k is clearly less than the size of the arraylist. Any help would be appreciated.</p>

<pre><code>Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 10, Size: 10
    at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    at java.util.ArrayList.get(ArrayList.java:349)
    at MD5HashTable.Hash.main(Hash.java:57)
Java Result: 1
</code></pre>
