MCPcopy Create free account
hub / github.com/apna-college/Alpha / main

Method main

13_Stacks/StackAL.java:30–41  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

28 }
29 }
30 public static void main(String args[]) {
31 Stack stack = new Stack();
32 stack.push(1);
33 stack.push(2);
34 stack.push(3);
35 stack.push(4);
36
37 while(!stack.isEmpty()) {
38 System.out.println(stack.peek());
39 stack.pop();
40 }
41 }
42}

Callers

nothing calls this directly

Calls 4

pushMethod · 0.95
isEmptyMethod · 0.95
peekMethod · 0.95
popMethod · 0.95

Tested by

no test coverage detected