MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / main

Method main

Gfg/Java/Implementation of Stack.java:26–40  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

24 return (top == maxSize - 1);
25 }
26 public static void main(String[] args) {
27 MyStack theStack = new MyStack(10);
28 theStack.push(10);
29 theStack.push(20);
30 theStack.push(30);
31 theStack.push(40);
32 theStack.push(50);
33
34 while (!theStack.isEmpty()) {
35 long value = theStack.pop();
36 System.out.print(value);
37 System.out.print(" ");
38 }
39 System.out.println("");
40 }
41}

Callers

nothing calls this directly

Calls 4

pushMethod · 0.95
isEmptyMethod · 0.95
popMethod · 0.95
printMethod · 0.45

Tested by

no test coverage detected