help with class expected.

Z:\Java\dloads>javac newage.java

newage.java:57: 'class' or 'interface' expected

}

^

newage.java:59: 'class' or 'interface' expected

^

newage.java:41: cannot resolve symbol

symbol : method readline ()

location: class java.io.BufferedReader

String my_job = br.readline();

Thats the error i'm gettting.

Here's the code.

import java.io.*;

public class newage {

public static void main (String s[]) throws Exception {

BufferedReader br = new BufferedReader

(new InputStreamReader

(System.in));

System.out.println("Enter your name");

String my_name = br.readLine();

System.out.println("Your name is " + my_name);

System.out.println("Enter your age:");

int age = Integer.parseInt(br.readLine());

int newage = age + 10;

System.out.println(my_name + " will be " + newage + " in 10 years");

if (age < 20) {

System.out.println("Your too young to be running this program");

} else {

System.out.println("Your old enough to be running this program");

}

System.out.println("Enter your job title");

String my_job = br.readline();

if (my_job.equals("Manager") || my_job.equals("manager")) {

System.out.println("Congratulations on your good job!");

} else {

System.out.println("Go back to school!");

}

}

[1439 byte] By [da_hooded_wana] at [2007-10-3 4:23:56]
# 1
You're missing a final } and you have a spelling error.
ejpa at 2007-7-14 22:26:20 > top of Java-index,Developer Tools,Java Compiler...