Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/careercup/ctci
/ main
Method
main
java/Chapter 18/Question18_1/Question.java:16–23 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
14
}
15
16
public
static
void
main(String[] args) {
17
for
(
int
i = 0; i < 100; i++) {
18
int
a = randomInt(10);
19
int
b = randomInt(10);
20
int
sum = add(a, b);
21
System.out.println(a +
" + "
+ b +
" = "
+ sum);
22
}
23
}
24
25
}
Callers
nothing calls this directly
Calls
2
randomInt
Method · 0.95
add
Method · 0.95
Tested by
no test coverage detected