public static int add(int one, int two)
{
int c = a + b;
return c;
}
Every method in java must have a return type in its method signature. The
add method has a return type of
int which means that the method must return an
int. i can call the
add method with two arguemnts and get the sum of them back, it will return the sum to me: int x = add(5, 6);
The type returned from the method must match the return type declared in the method signature.