//ProjectThreeStack behaves exactly as DropoutStack, except it //automatically doubles in size whenever it becomes full, //thus never discarding any old elements when new are added public class ProjectThreeStack extends DropoutStack { public void push (T element){ //if full, double in size, then push as usual if(isFull()) resize(size()*2); super.push(element); } }