Can this java snippet be re-written?
<p>Can anyone suggest how to re-write the following Java snippet and if so why it would be inappropriate, thanks !!</p>

<pre><code>try {
    int i = 0;
    while (true)
        a[i++].func();
} catch(ArrayIndexOutOfBoundsException e) {
}
</code></pre>
