Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 390 Bytes

usage.md

File metadata and controls

24 lines (21 loc) · 390 Bytes

Usage

You use a static method by writing the name of the class where it is defined followed by . and the method name.

class StuffDoer {
    static void doStuff() {
        System.out.println("Doing stuff");
    }
}
~class StuffDoer {
~    static void doStuff() {
~        System.out.println("Doing stuff");
~    }
~}
~
void main() {
    StuffDoer.doStuff();
}