Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ addMessage
Method
addMessage
java/Chapter 8/Question8_7/Conversation.java:14–17 ·
view source on GitHub ↗
(Message m)
Source
from the content-addressed store, hash-verified
12
}
13
14
public
boolean addMessage(Message m) {
15
messages.add(m);
16
return
true;
17
}
18
19
public
int
getId() {
20
return
id;
Callers
2
sendMessageToUser
Method · 0.80
sendMessageToGroupChat
Method · 0.80
Calls
1
add
Method · 0.45
Tested by
no test coverage detected