Access modifier - This can be default, private or public. Public methods can be accessed by anything, default (you do not write default, just leave it blank) and private only accessed by the class.

Return type - A method can return a single value. As with everything Java this must be typed. If the method does not return a value then it will be a return type of void.

parameters - A method may require certain information before it can run. This information is passed in as parameters. A parameter is typed and requires a name so it can be referenced. You can have as many parameters as you wish

next parameters >>

 
Basics
Menu
Search