title: Manually adding IndexOutOfBounds Exception
body: <p>I'm trying to manually throw an index out of bounds exception for an array.
  I know that to throw a regular exception, I can do something like:</p>
  
  <pre><code>if(x&gt;array.length){
  throw new Exception("Bad choice!");
  }
  </code></pre>
  
  <p>But how can I do the index out of bounds exception?</p>
  
  <p>Thanks</p>