title: How to count the number of sub string from a split in java
body: <p>I have this piece of code in my java class</p>
  
  <pre><code>mystring  = mysuperstring.split("/");
  </code></pre>
  
  <p>I want to know how many sub-string is created from the split.</p>
  
  <p>In normal situation, if i want to access the first sub-string i just write</p>
  
  <pre><code>mystring[0];
  </code></pre>
  
  <p>Also, i want to know if <code>mystring[5]</code> exist or not.</p>