0

I am new to Java and have ran this several different ways nothing works.
My instructor is requiring that the BufferedReader be used in the program I am attempting to write. I can convert to doubles and can do String but it will not work with integers. (This method for input from the user is not in the book we are using, the book uses System.in.read or JOptionPane not the BufferedReader and PrintWriter methods.

static BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
static PrintWriter screen = new PrintWriter(System.out,true);

mLength = new Integer(keyboard.readLine()).intValue;

this is the line of code that is giving me trouble the two lines above are in the program to use the classes for the BufferedReader and PrintWriter. This one gives the error code can not resolve symbol - the mLength variable has been declared in the program. Any help would be appreciated

1
Contributor
1
Reply
2
Views
13 Years
Discussion Span
Last Post by blondie_3233
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.