Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ flip
Method
flip
java/Chapter 8/Question8_8/Piece.java:10–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
}
9
10
public
void
flip() {
11
if
(color == Color.Black) {
12
color = Color.White;
13
}
else
{
14
color = Color.Black;
15
}
16
}
17
18
public
Color getColor() {
19
return
color;
Callers
1
flipSection
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected