Okay, so I'm trying to figure out how to determine if an integer is even or odd by using a boolean method. I think I have the method right, but it's calling the method into the main that has got me stumped. I've been out of practice for a couple weeks, so I'm very confused.
import java.util.Scanner; public class Odd_Even { public static void main(String[] args) { //Scanner, variables Scanner input = new Scanner(System.in); int number; System.out.println("Please enter an integer number: "); number = input.nextInt(); //output System.out.println("The number " + number + " is " + ) if(number = iseven(number)) { } } private static boolean iseven(int number) { if(number % 2 == 0) { } return true; } }