super();
super(size);
Returns the object at the top of the stack.returnthe object at the top or null if the stack is empty. if (size() > 0) { return get(size() - 1); } return null;
if (size() > 0) { return get(size() - 1); } return null;
Remove the object at the top of the stack and returns it.returnthe removed object or null if the stack was empty. if (size() > 0) { return remove(size() - 1); } return null;
if (size() > 0) { return remove(size() - 1); } return null;
Pushes the given object to the stackparamobject the object to push add(object);
add(object);