你运行的时候不能单单输入java wanshu后面得加参数 如java wanshu 11 21回车那么args[0]就是11了
因为你没有输入参数 ,int a=Integer.parseInt(args[0]);肯定会出错撒