Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ tPop
Method
tPop
annotations/StackLStringTst.java:21–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
assert top().equals(
"two"
);
20
}
21
@Test
22
void
tPop() {
23
push(
"one"
);
24
push(
"two"
);
25
assert pop().equals(
"two"
);
26
assert pop().equals(
"one"
);
27
}
28
@Test
29
void
tTop() {
30
push(
"A"
);
Callers
nothing calls this directly
Calls
3
push
Method · 0.45
equals
Method · 0.45
pop
Method · 0.45
Tested by
no test coverage detected