You are not allowed to define a method within another method. Separate your method definitions out of your main method.

Things you should know about Methods:

Method:
-A method is invoked by...