Declaration

The simplest kind of method is declared by writing void followed by some name, (), and some code inside of a { and }.

void doThing() {
    System.out.println("Hello from inside a method!");
}

void main() {
    doThing();    
}