Defining Methods

The method declaration takes the following form:

<modifiers> <return_type> <name> (
[<argument_list>])
[throws <exception>] {
< block >
}

Example:

public int addDays(int days) {
< block > // Method code here
}