public class BasicMathValidator extends Object
Constructor and Description |
---|
BasicMathValidator() |
Modifier and Type | Method and Description |
---|---|
int |
add(int num1,
int num2)
Adds the integers together and returns the result.
|
int |
multiply(int num1,
int num2)
Multiplies the integers together and returns the result.
|
int |
subtract(int num1,
int num2)
Subtracts the integers together and returns the result.
|
public int add(int num1, int num2)
num1
- - the first integer to be summednum2
- - the second integer to be summedpublic int subtract(int num1, int num2)
num1
- - the first integer to be subtractednum2
- - the second integer to be subtractpublic int multiply(int num1, int num2)
num1
- - the first integer to be multipliednum2
- - the second integer to be multipliedCopyright © 2020. All rights reserved.