0
Pass two int as a parameter. And return the sum of numbers
how to pass and return #java
1 Respuesta
+ 10
// method definition
public int sum(int i, int j) {
return i+j;
}
// call the method and store the return value
int k=sum(1,2);
how to pass and return #java