I want to create a Stack in Java, but fix the size. For example, create a new Stack, set the size to 10, then as I push items to the stack it fills up and when it fills up t
What you need is a double-ended queue like LinkedList. This wouldn't automatically drop elements at the front though, but by subclassing/decorating it you could add that functionality.