title: String array how to overcome the ArrayIndexOutOfBoundsException
body: <p>In situation where you are not sure about the length of an array attempting to read a value position from a non existing value lead to</p>
  
  <pre><code> Caused by: java.lang.ArrayIndexOutOfBoundsException: length=x; index=x
  </code></pre>
  
  <p>For example in an excel importing function you expect 10 columns but the file has 9 columns then reading the 10th column result to this exception.  </p>
  
  <p>what is the best way of dealing with this kind of exception?</p>