Write a program in Java to accept any integer and check wheather it is odd or even Without Use If else. Programming Beginner To Advanced //EVEN ODD WITH OUT IF ELSE / USING TERNARY OPERATORimport java.util.*;class evenodd{ public static void main(String args[]) { String x; int n; Scanner sc= new Scanner(System.in); System.out.println("Enter the No"); n=sc.nextInt(); x=(n%2==0)?"Even" :"ODD"; System.out.println(x); }} Share This: Facebook Twitter Google+ Stumble Digg