Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BruceEckel/OnJava8-Examples
/ main
Method
main
enums/RoShamBo1.java:25–28 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
23
a +
" vs. "
+ b +
": "
+ a.compete(b));
24
}
25
public
static
void
main(String[] args) {
26
for
(
int
i = 0; i < SIZE; i++)
27
match(newItem(), newItem());
28
}
29
}
30
/* Output:
31
Rock vs. Rock: DRAW
Callers
nothing calls this directly
Calls
2
match
Method · 0.95
newItem
Method · 0.95
Tested by
no test coverage detected