I hope you have changed your code from,

a=Integer.parseInt(arg[1]);
b=Integer.parseInt(arg[2]);
c=Integer.parseInt(arg[3]);
to

a=Integer.parseInt(arg[0]);
b=Integer.parseInt(arg[1]);...