inputLine is declared as a
String, then there is a "try" block including the attempted read. The code (GameHelper.java) is copied from page 112 of
Head First Java Feb. 2005 edition.
The error messages follow. (Presumably the second will go away when the first is resolved). The pointers (before the lines are collapsed to the left margin) are at "readLine" on the first error, and "." on the second.
C:\jdk6\test2008>javac GameHelper.java
GameHelper.java:9: cannot find symbol
symbol : method readLine()
location: class GameHelper
inputLine = is(readLine());
^
GameHelper.java:10: cannot find symbol
symbol : variable length
location: class java.lang.String
if (inputLine.length == 0) return null;
^
2 errors
[ February 10, 2008: Message edited by: Will Hoskins ]
[ February 10, 2008: Message edited by: Will Hoskins ]