arraylist get last

Java
E e = list.get(list.size() - 1);
Source

Also in Java: