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