public class elseIf { public static void main(String[] args) { System.out.println("Your age please:"); String age = System.Console.ReadLine(); int age = Integer.parseInt(age); if (age >=18) { System.out.println("You're getting old"); } else if (age < 18) { System.out.println("You're a young one"); } System.out.println("at the age of" + age); } }