push method

void push(
  1. T val
)

Same as in JavaScript

appends the val in the list

Implementation

void push(T val) {
  add(val);
}