MCPcopy Create free account
hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / pop

Method pop

11. Stack/stackArray.java:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 public double pop() {
46 if (top == -1)
47 return -99;
48 else
49 return stackArray[top--];
50 }
51
52 public double peek() {
53 if (top == -1)

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected