Function
A method that performs some task and returns a value. Instead of the keyword void, the type or class of the return value is used. Statement return <value> is used to terminate execution of a function call and return <value>.
Syntax: // Comment that explains what the function does. It should include // something like �Yield �� to describe what the function returns.
public <type> <method name> (<parameters>)
{Sequence of statements to execute}
Example: // Yield the maximum of x and y
public int max (int x, int y);
Example function call (within some statement) z = 1 + max(x, y);