title: ArrayList - how can I check if an index exists?
body: <p>I'm using <code>ArrayList&lt;String&gt;</code> and I add data at specific indices, how can I check if a specific index exists?</p>
  <p>Should I simply <code>get()</code> and check the value? Or should I wait for an exception?
  Is there another way?</p>
  <p><strong>Update:</strong> Thank you for your answers, but because I'm only adding stuff at specific indices, the length of the list will not show me which are available.</p>