push method

E push(
  1. E item
)

push element in top of the stack.

Implementation

E push(E item) {
  _list.addLast(item);
  return item;
}