public class suan
{
public static void main(String args[])throws java.io.IOException
{
int a,b;char c;
a=Integer.parseInt(args[0]);
b=Integer.parseInt(args[1]);
c=(char)System.in.read();
switch(c)
{
case'+':System.out.println("a+b="+(a+b));break;
case'-':System.out.println("a-b="+(a-b));break;
case'*':System.out.println("a*b="+(a*b));break;
case'/':System.out.println("a/b="+(a/b));break;
default:System.out.println("error");
}

}}
能编译过去,但是运行时就出现这个错误