title: Java: Get last element after split
body: <p>I am using the String split method and I want to have the last element.
  The size of the Array can change.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>String one = "Düsseldorf - Zentrum - Günnewig Uebachs"
  String two = "Düsseldorf - Madison"
  </code></pre>
  
  <p>I want to split the above Strings and get the last item:</p>
  
  <pre><code>lastone = one.split("-")[here the last item] // &lt;- how?
  lasttwo = two.split("-")[here the last item] // &lt;- how?
  </code></pre>
  
  <p>I don't know the sizes of the arrays at runtime :(</p>