Java Playground - cube of a number using function: Online Interpreter, Compiler & Editor | Sololearn