java arraylist get last 10 items code example Example: arraylist get last E e = list.get(list.size() - 1);