public void push(String thisPage) { theList.insertHead(thisPage); // inserts the newdata at the top of the stack }