import java.util.Scanner; public class Even { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter an integer to test: "); int testValue = input.nextInt(); System.out.print("The number " + testValue + " is "); if (testValue % 2 == 0) { System.out.println("even."); } else { System.out.println("odd."); } } }