Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ foam
Method
foam
reuse/Detergent.java:28–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
}
27
// Add methods to the interface:
28
public
void
foam() { append(
" foam()"
); }
29
// Test the new class:
30
public
static
void
main(String[] args) {
31
Detergent x =
new
Detergent();
Callers
1
main
Method · 0.95
Calls
1
append
Method · 0.80
Tested by
no test coverage detected