Write a static method square(int n) in MathUtil that returns n * n.
square(int n)
MathUtil
n * n
Because it is static, main calls it on the class itself — MathUtil.square(6) — without ever building an object. The program prints 36.
main
MathUtil.square(6)
36