Provides utility methods for mathematical operations.
Checks if an integer is odd.
input(int): The integer to check.
bool:trueif the input is odd; otherwise,false.
Checks if an integer is even.
input(int): The integer to check.
bool:trueif the input is even; otherwise,false.
Checks if an integer is a prime number.
input(int): The integer to check.
bool:trueif the input is a prime number; otherwise,false.
Checks if an integer is a Fibonacci number.
input(int): The integer to check.
bool:trueif the input is a fibonacci number; otherwise,false.
The UtilityMath class provides utility methods for common mathematical operations. Developers can use these methods to check if an integer is odd, even, or a prime number. These functions are designed to assist in mathematical computations and can be used to implement logic based on the properties of numbers.