fungsi sederhana 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);
    }

}
Fernandez, Jasmine M.