Untitled
unknown
java
5 months ago
331 B
3
Indexable
class MyClass { static int Add(int val1, int val2) //add method declared { return val1 + val2; } public static void main(String[ ] args) //main method { //invokes the method called add int x = Add(2, 7); System.out.println(x); } } // Outputs "9"
Editor is loading...
Leave a Comment