Help on Errors

Hi,

Just wondered if anyone could help to correct some errors for this line of code:

ReadResults rr = new ReadResults (lineScan.getString("HomeTeam"), lineScan.getString("AwayTeam"),lineScan.getInt("HomeScore"), lineScan.getInt("AwayScore"));

Results.add(rr);

6 errors occur from this line of code, all say "cannot find symbol."

Example of one of the errors:

.java:28: cannot find symbol

symbol : method getString(java.lang.String)

location: class java.util.Scanner

ReadResults rr = new ReadResults (lineScan.getString("HomeTeam"), lineScan.getString("AwayTeam"),lineScan.getInt("HomeScore"), lineScan.getInt("AwayScore"));

Thanks, Aaron

[705 byte] By [azza_ba] at [2007-11-26 14:50:16]
# 1
I already answered your question in your cross-post. There was no need to repost this question. http://forum.java.sun.com/thread.jspa?threadID=5123810
cotton.ma at 2007-7-8 8:38:24 > top of Java-index,Java Essentials,New To Java...
# 2

Whatever lineScan is (We don't know since you did not show it's declaration, and it is probably a "hoemgrown" class anyway) does not contain a method getString that takes only a single argument/parameter of type String.

Edit:

I'm an idiot. Did not read the entire error message. But the description is still correct.

masijade.a at 2007-7-8 8:38:24 > top of Java-index,Java Essentials,New To Java...