How to Handle ArrayIndexOutOfBoundsException
<p>I am getting <code>-1</code> from my <code>response</code>. I get this exception, how to handle this exception so that i can avoid any integer which does not match my <code>Array</code>.</p>

<pre><code>Constants.Friends[Integer.parseInt(custom.getFriendsList())]
</code></pre>

<p>For instance if my Array Holds four items. </p>

<pre><code>String[] MyList = {"One","Two","Three","Four"};
</code></pre>

<p>If my getting either -1 or any value greater than 3, <strong>how can i handle them.</strong> </p>
