question archive Exercise (Method): boolean method called isOdd() in a class called OddTest, which takes an int as input and returns true if the it is odd
Subject:Computer SciencePrice:2.87 Bought7
Exercise (Method): boolean method called isOdd() in a class called OddTest, which takes an int as input and returns true if the it is odd. The signature of the method is as follows:
public static boolean isOdd(int number)
Also write the main() method that prompts user for a number, and prints "ODD" or "EVEN". You should test for negative input.
Purchased 7 times