Class NumberUtils

java.lang.Object
dev.sefiraat.sefilib.number.NumberUtils

public final class NumberUtils extends Object
This class contains basic utility methods for numbers.
  • 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.