输入语句读不到首字母

图片说明

try {
while (true)
{
a = System.in.read();
if (a == -1) break;
... //你循环后面的东西
}
...