Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to call a static method in java

class scratch{
	public static hey(){
		System.out.println("Hey");
    }
	public static void main(String[] args){
		hey();
        //print Hey to the console
    }
 
PREVIOUS NEXT
Tagged: #call #static #method #java
ADD COMMENT
Topic
Name
4+6 =