A two-parameter sum is already written above. Add an overload: the same name, but taking three numbers, returning their total.
sum
The program prints 3 and then 6 — Java picks the version by the number of arguments.
3
6