Rewrite the following using ternary operator: if(a%2==0)
System.out.println(“Even”);
else
System.out.println(“Odd”)
Share
Rewrite the following using ternary operator: if(a%2==0)
System.out.println(“Even”);
else
System.out.println(“Odd”)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
0 Replies