Checkpoint 1.31.1.
The function
isPositiveAndEven()
takes an integer as input and returns a boolean. Complete the function by filling in the blanks so that when the input is positive and even it returns true. Otherwise, it returns false. Reminder: use the "%" operator to get the reminder. For example, 23 % 2 is 1 since 23 is an odd number.public static boolean isPositiveAndEven(int number) {
return ...........Blank ............. ;
}
Blank :