Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to call a function in java

public class MyClass {
 
    static void myMethod() {
        System.out.println("You have called me! My name is: myMethod!");
    }
 
    public static void main(String[] args) {
        myMethod();
    }
}
Source by examples.javacodegeeks.com #
 
PREVIOUS NEXT
Tagged: #call #function #java
ADD COMMENT
Topic
Name
6+4 =