Probably because you've named your class main. It probably thinks you are trying to make a constructor or something. Don't name your class main.