List has the method add(int, E), so you can use:
list.add(0, yourObject);
Afterwards you can delete the last element with:
if(list.size() > 10) list.remove(list.size() - 1);
List has the method add(int, E), so you can use:
list.add(0, yourObject);
Afterwards you can delete the last element with:
if(list.size() > 10) list.remove(list.size() - 1);