Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/careercup/ctci
/ incrementRank
Method
incrementRank
java/Chapter 8/Question8_2/Call.java:39–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
}
38
39
public
Rank incrementRank() {
40
if
(rank == Rank.Responder) {
41
rank = Rank.Manager;
42
}
else
if
(rank == Rank.Manager) {
43
rank = Rank.Director;
44
}
45
return
rank;
46
}
47
48
/* Disconnect call. */
49
public
void
disconnect() {
Callers
1
escalateAndReassign
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected