BrRead.java [22:1] cannot resolve symbol
symbol : class InputSteamReader
location: class BrRead
br=new BufferedReader(new InputSteamReader(System.in));
^
1 error
Errors compiling BrRead.
symbol : class InputSteamReader
location: class BrRead
br=new BufferedReader(new InputSteamReader(System.in));
^
1 error
Errors compiling BrRead.
public class test
{
static public void main(String[] args)
throws Exception//异常处理
{
System.out.print("please input user name: ");
int c = System.in.read();
System.out.println();
if(c == -1)
System.out.println("Ctrl-C has been pressed!");
System.out.print(c + " ");
do
{
c = System.in.read();
System.out.print(c + " ");
}
while(c != 10);
System.out.println();
}
}
InputSteamReader改成InputStreamReader
我看错了,我以为你用的是System.in.read()