Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/benfry/processing4
/ pop
Method
pop
core/src/processing/data/StringList.java:171–178 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
169
170
171
public
String pop() {
172
if
(count == 0) {
173
throw
new
RuntimeException(
"Can't call pop() on an empty list"
);
174
}
175
String value = get(count-1);
176
data[--count] = null;
// avoid leak
177
return
value;
178
}
179
180
181
/**
Callers
nothing calls this directly
Calls
1
get
Method · 0.95
Tested by
no test coverage detected