I am using the String split method and I want to have the last element. The size of the Array can change.
Example:
String one = \"Dü
using a simple, yet generic, helper method like this:
public static T last(T[] array) { return array[array.length - 1]; }
you can rewrite:
lastone = one.split("-")[..];
as:
lastone = last(one.split("-"));