为什么按一次回车会向程序中输入两个字符??
											import javax.swing.*;
public class Test1
{
 public static void main(String []arg)throws java.io.IOException
 
 {
      loop:while(true) 
 {int i;
 int c;
 for(i=0;i<10;i++)
  switch(c=System.in.read())
  {case 'j':
   case 'q':
   break loop;
   default:
   System.out.println(i);
  }
 }
 }
}
我输入1后,显示结果如下:
1
0
1
2
谢谢了!!!



 
											





 
	    

 
	
 
											


