Old post, but still... Java 21 has a new interface SequencedCollection which is extended by List and many other types. It has getLast() method.
SequencedCollection
List
getLast()
As well as other useful methods: