import java.io.InputStreamReader;
class KeyTest{
public static void main(String args[]) throws Exception{
char c;
InputStreamReader isr=new InputStreamReader(System.in);
while((c=(char)isr.read())!='*')
System.out.print(" "+c);
}
}
这样就没有问题了
class KeyTest{
public static void main(String args[]) throws Exception{
char c;
InputStreamReader isr=new InputStreamReader(System.in);
while((c=(char)isr.read())!='*')
System.out.print(" "+c);
}
}
这样就没有问题了
System.out.print(c);
就没问题了