Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ read
Method
read
exceptions/Switch.java:8–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
public
class
Switch {
7
private
boolean state = false;
8
public
boolean read() {
return
state; }
9
public
void
on() {
10
state = true;
11
System.out.println(this);
Callers
8
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
main
Method · 0.45
thisClass
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected