how to check if array is equal?
<pre><code>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 105
    at HelloExample.main(jav.java:10)
</code></pre>

<p>please fix this error. 
thanks in advance</p>

<pre><code>class HelloExample 
{
    public static void main(String[] args) 
    {
        String str="HELLO";
        char ch[]=str.toCharArray();

        for(int i=0;i&lt;ch.length;i++){
   if(ch['i']=='a' || ch['i']=='e' || ch['i']=='i' || ch['i']=='o' || ch['i']=='u'){
            System.out.println(ch[i]);
   }
        }
    }
}
</code></pre>
