错因:Scanner myScannner=new Scannner(System.in); int a1=Scanner.next(); 正确应该为int a1=myScanner.next(); //具体对象.具体方法