I don't think you can put anything, i.e. your calcualteAvaerage() inside of your main. Move that out and put it before your main class.
Also, java don't care, but Avaerage is misspelled. it should...