Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 260 Bytes

File metadata and controls

13 lines (11 loc) · 260 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() {
    IO.println("Hello from inside a method!");
}
~
~void main() {
~    doThing();    
~}