last

last(): MemberType abstract;

The last method of the Collection class returns a reference to the last entry in a collection or it returns null if the collection is empty.