Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/compiler-explorer/compiler-explorer
/ square
Method
square
examples/java/default.java:3–5 ·
view source on GitHub ↗
(int num)
Source
from the content-addressed store, hash-verified
1
// Type your code here, or load an example.
2
class
Square {
3
static
int
square(
int
num) {
4
return
num * num;
5
}
6
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected