Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Method returns value


class HelloWorld {
    public static void main(String[] args) {
 System.out.print(num());

    }
    
    
    
 static int num()
 {
     return 123;
 }
    
    
}
 
PREVIOUS NEXT
Tagged: #Method #returns
ADD COMMENT
Topic
Name
4+3 =