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ü
In java 8
String lastItem = Stream.of(str.split("-")).reduce((first,last)->last).get();