import java.util.*; public class Age { public static void main(String[] args) { String name; int birth1=2001, birth2, age1, age2, year=2015; // I was born in 2001, it is now 2015, who is older, you or me? char bday; Scanner input=new Scanner(System.in); age1=year-birth1; // compute my age System.out.print("What year were you born? "); birth2=input.nextInt(); System.out.print("Have you had your birthday yet this year? (Y/N) "); bday=input.next().toUpperCase().charAt(0); // get the answer as a String but convert it to upper case letters and just return the first character (at position 0) age2=year-birth2; // compute your age and adjust it down by 1 if you haven't had your birthday yet this year if(bday=='N') age2=year-birth2-1; if(age1>age2) System.out.println("I am older than you are!"); // based on who is older, output a response if(age1