Y
yexiaomin
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么输入的数与输出的数不相符?
public class Test
{public static void main(String[] args)
{
try
{int a;
System.out.print("Input command: ");
a= System.in.read();
System.out.println(a);
}
catch(Exception e)
{
}
}
}
public class Test
{public static void main(String[] args)
{
try
{int a;
System.out.print("Input command: ");
a= System.in.read();
System.out.println(a);
}
catch(Exception e)
{
}
}
}