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

Method main

13_Stacks/StackJCF.java:4–15  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

2
3public class StackJCF {
4 public static void main(String args[]) {
5 Stack<Integer> stack = new Stack<>();
6 stack.push(1);
7 stack.push(2);
8 stack.push(3);
9 stack.push(4);
10
11 while(!stack.isEmpty()) {
12 System.out.println(stack.peek());
13 stack.pop();
14 }
15 }
16}

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