Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/careercup/ctci
/ addFriend
Method
addFriend
java/Chapter 10/Question10_2/Person.java:23–23 ·
view source on GitHub ↗
(int id)
Source
from the content-addressed store, hash-verified
21
}
22
public
int
getID() {
return
personID; }
23
public
void
addFriend(
int
id) { friends.add(id); }
24
25
public
Person(
int
id) {
26
this.personID = id;
Callers
nothing calls this directly
Calls
1
add
Method · 0.45
Tested by
no test coverage detected