I'd like to store a list of numbers 1,2,3,4 - (lets start with List<Integer>
)
I'd like to make sure numbers are unique (ok, fine, Set<Integer>
)
I'd like to guarantee order (ok ... LinkedHashSet<Integer>
)
I'd like to get the last element from the list ..
What would be the simplest way to get the last number inserted into the LinkedHashSet<Integer>
please?