Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 228 Bytes

File metadata and controls

9 lines (7 loc) · 228 Bytes

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!");
}