MCPcopy Create free account
hub / github.com/cbourke/ComputerScienceII / push

Method push

notes/1231-Spring2023/156H/code/lists/Stack.java:28–36  ·  view source on GitHub ↗

Pushes (adds) the given element x to the top of the stack. Throws an IllegalArgumentException if the element is null . @param x

(T x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

preOrderMethod · 0.95
nextMethod · 0.45

Calls 2

isFullMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected