package chapterOne; import java.util.Scanner; public class ParityCheck { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.println("Please enter a integer:"); long number=scan.nextLong(); String check=(number%2==0)?"This number is even number":"This number is odd number "; System.out.println(check); } }