public class BufferedReader {
public static void main(String[] args)
throws IOException
{
char c;
BufferedReader sen = new BufferedReader (new InputStreamReader(System.in)); **// ERROR**
System.out.println("Enter characters, 'q' to quit");
// read characters from the console
while(c != 'q')
{
c = (char) sen.read(); **// ERROR**
System.out.print(c);
}
}
}
I don't understand why the upper two lines of code produce error!