Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/careercup/ctci
/ set
Method
set
java/Chapter 14/Question14_6/CircularArray.java:31–33 ·
view source on GitHub ↗
(int i, T item)
Source
from the content-addressed store, hash-verified
29
}
30
31
public
void
set(
int
i, T item) {
32
items[convert(i)] = item;
33
}
34
35
public
Iterator<T> iterator() {
36
return
new
CircularArrayIterator<T>(this);
Callers
1
main
Method · 0.95
Calls
1
convert
Method · 0.95
Tested by
no test coverage detected