020-001-003
Method Definition: Number Addition Method
Medium
Problem Description
In this problem, you will create a program that defines an add method which receives two integers as parameters, computes their sum, and displays the result to standard output.
method Definition
Use static int add(int a, int b) to receive two integer parameters and use return to return their sum (a + b) as the result.
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up