报cannot resolve symbol怎么处理
cqin 2003-03-17 05:42:53 IOTest.java:19: cannot resolve symbol
symbol : variable in
location: class IOTest
myline = in.readLine();
^
IOTest.java:23: cannot resolve symbol
symbol : variable in
location: class IOTest
myline = in.readLine();
^
2 errors
代码如下:
import java.io.*;
public class IOTest
{
public static void main(String args[]) // thrown FileNotFoundException
{
String myline;
try
{
BufferedReader in = new BufferedReader(new FileReader("Hello.java"));
}
catch(FileNotFoundException e)
{
System.out.println("Got one file exception");
e.printStackTrace();
}
try
{
myline = in.readLine();
while (myline != null)
{
System.out.println(myline);
myline = in.readLine();
}
}
catch (IOException e2)
{
System.out.println("Got one readline Exception");
e2.printStackTrace();
}
}
}