John Sing wrote:So what should I do to fix these errors?
There are few things.
1st - you cannot declare method within method, so you have to close your main method, then declare another.
2nd - you cannot call non static method in static method.
This sort of example could help you only for a quick little practise programs. For better practises search for faq "Main Is A Pain".
Example to solve 1st and 2nd mentioned points.