Thats obvious, you dont have a method getAverage(int[] var) in your class. Please fix it. Even after that you will be having few more compilation error. Please review and fix them and good luck.