/*****************************************************************
** YDemoIfStatement - same as DemoIfElseStatement.java except 
** using the york package
**
** (c) Scott MacKenzie, 2000                             
******************************************************************/
import york.*;

public class YDemoIfElseStatement
{
   public static void main(String[] args) 
   {
      York.println("Welcome to the Java Roadhouse!");
      York.print("Please enter your age: ");
      int age = York.readInt();
      if (age < 19)
         York.println("Here's a ticket for a free soda");
      else
         York.println("Here's a ticket for a free beer");
      York.println("Please enter");
   }
}

