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

Method main

13_Stacks/StackLL.java:48–59  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

46 }
47
48 public static void main(String args[]) {
49 Stack stack = new Stack();
50 stack.push(1);
51 stack.push(2);
52 stack.push(3);
53 stack.push(4);
54
55 while(!stack.isEmpty()) {
56 System.out.println(stack.peek());
57 stack.pop();
58 }
59 }
60}

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