Math Madness: The Odd Doubler

Create a Java method that takes in two integers, adds them together, and returns the result. However, if the sum of the two integers is odd, return the value of the integer multiplied by 2 instead. Try to complete this without using if-statements.


        

Try to store the sum in a variable. Then, create a multiplier variable that stores either 1 or 0 depending on whether the sum is even or odd. Use the module operator for this variable. Multiply the sum by the multiplier and add it to the sum.