Challenge 1: Method to Check Sum
In this challenge, you will implement a method which checks the Sum of two integers.
We'll cover the following...
Problem statement
Write a static method checkSum
that adds two integer arguments and returns 0, 1 or 2.
-
Takes two integers
one
andtwo
in its input. Arguments are pass by value to the method. -
Has a
check
variable whose value gets updated as ...