Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

simple function java


public class Sample {
    public static void main(String[] args) {
        add(6,4);
    }

    static void add(int num1, int num2) {
        System.out.println(num1 + num2);
    }

}
 
PREVIOUS NEXT
Tagged: #simple #function #java
ADD COMMENT
Topic
Name
3+5 =