Package dev.sefiraat.sefilib.number
Class NumberUtils
java.lang.Object
dev.sefiraat.sefilib.number.NumberUtils
This class contains basic utility methods for numbers.
-
Method Summary
-
Method Details
-
isEven
public static boolean isEven(int i) Checks if the given number is even.- Parameters:
i- The number to check.- Returns:
- True if the number is even.
-
isOdd
public static boolean isOdd(int i) Checks if the given number is odd.- Parameters:
i- The number to check.- Returns:
- True if the number is odd.
-