7:58 pm - Thursday April 25, 2019

Java Example Program to find Persons eligble to Vote

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
//Java Example Program to find Persons eligble to Vote
/**
@author:candidjava.com
@description:Program to find Persons eligble to Vote
*/
public class Vote
{
  public static void main(String args[])
  {
   int a=22;//take input age
    if(a>18)//condition for eligble to vote
    {
     System.out.println("eligble to Vote");
    }
    else
    {
     System.out.println("not eligble to Vote");
    }
  }
}

Output:
eligble to Vote

Filed in: Z-A All Java Codes

Comments are closed.