PPT Slide
There exists a single construct, the method, for both procedures and functions:
- when a procedure is called for, specify the return type “void” before method name
- Note: All methods must have parentheses for parameters . . . even if no parameters!
public void printHelloWorld( )
System.out.println(“Hello World!”);