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

Method peek

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

Source from the content-addressed store, hash-verified

50 }
51
52 public double peek() {
53 if (top == -1)
54 return -99;
55 else
56 return stackArray[top];
57 }
58
59 //Stack isEmpty method
60 public boolean isEmpty(){

Callers 3

mainMethod · 0.95
InfixToPreFixClass · 0.45
isBalancedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected