I need to add items to an arraylist until the count gets to, for example, 100 and then read them on a Last in first out basis.

ow do I achieve this?