Check Person is valid for voting or not in Java
In Java, to check if a person is valid for voting or not we can use an if-else conditional statement or the ternary Operator. For example, if the person age is 18 or older, then it should print that the “person is valid for voting”. If the person age is less than 18 then it … Read more