import java.io.*; import java.text.*; //5 more cockroaches to exterminate! public class buggy3 { public static void year_of_birth() { return YEAR-age; } public static void main(String []args) throws IOException { static final int YEAR=2002; int age; //user's age int yob; //year of birth System.out.print("Please enter your age this year: "); BufferedReader in = new BufferedReader (new InputStreamReader(System.in)); //need this to read from the keyboard age=in.readLine(); //take what user types and translate it into an int year_of_birth(age);//function "call" System.out.println("You were born in: "+yob); } }