push method

dynamic push(
  1. dynamic item
)

Implementation

push(item) {
  top++;
  this.items.add(item);
}