Java program to return boolean value
Boolean value means "True" or "False". Our task is write a function which accepts an integer and returns a Boolean value "True" if the number passed is even number or "False" if the number passed is an odd number.
Output:
Enter a number to check even or odd: 5
number 5 is odd
Implementation: