MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / push

Method push

Programs/Stack.java:45–50  ·  view source on GitHub ↗
(int data)

Source from the content-addressed store, hash-verified

43 }
44
45 public void push(int data) {
46 Node tempNode = new Node(data);
47 tempNode.setNextNode(top);
48 top = tempNode;
49 length++;
50 }
51
52 public int pop() {
53 if(isEmpty()){

Callers

nothing calls this directly

Calls 1

setNextNodeMethod · 0.95

Tested by

no test coverage detected