private void moveNewToOld() { while (!newStack.isEmpty()) oldStack.push(newStack.pop()); }
public void add(T val) { newStack.push(val); }