Question: using Switch statment Java Exercise 6: Write a Java program to check the voting eligibility. Initially, we have taken the input age through the console

Exercise 6: Write a Java program to check the voting eligibility. Initially, we have taken the input age through the console using the Scanner class. Then we have added a conditional check for the age criteria .If the input age is 18 or greater than 18 then the voter is eligible to vote, else not.(use the suitable selection statement)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
