Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ Aisle
Method
Aisle
generics/Store.java:45–48 ·
view source on GitHub ↗
(int nShelves, int nProducts)
Source
from the content-addressed store, hash-verified
43
44
class
Aisle extends ArrayList<Shelf> {
45
Aisle(
int
nShelves,
int
nProducts) {
46
for
(
int
i = 0; i < nShelves; i++)
47
add(
new
Shelf(nProducts));
48
}
49
}
50
51
class
CheckoutStand {}
Callers
nothing calls this directly
Calls
1
add
Method · 0.45
Tested by
no test coverage detected