Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

calling method in java

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