Quote:
|
Originally Posted by lmellen
I've worked all the example programs up to class moon.The class moon program won't compile. I get:
ex6.java:16: cannot resolve symbol
symbol : method readline()
location: class java.io.BufferedReader
Then there is a ^ under the first new in the following line:
String strA = new BufferedReader(new InputStreamReader(System.in)).readLine();
Just wondering why it won't compile. No big deal, but a reply would be interesting.-- Thanks- Larry (I haven't been able to solve this problem)
|
--------------------------
first have you copy pasted teh moon d\code and tried it out bcos it works i have tried that with jdk 1.5 version it compiled perfectly
if the error is still there just try to resolve the method bcos readline() is a method availbale in BufferReader , so check first check by just calling by BufferReader object