Any simpler way to get the last element of a Java array?
<pre><code>String sentence = "Any simpler way to get the last element of a Java array?";
String lastToken = sentence.split(" ")[sentence.split(" ").length-1];
</code></pre>

<p>I'd like to split the sentence and get the last token. I feel my way of doing it is a little too awkward. Basically, I want the second statement to be shorter. Is that possible?</p>

<p><strong>Edit</strong>: What I'm looking for: 1) no need to declare the array separately 2) no need to split the sentence twice. It would be good if there's a method called <code>last</code> with array. I suspect this is impossible but want to make sure.</p>
