Show the code and Post the full text of the error messages if you want help with them.
Type: Posts; User: Norm
Show the code and Post the full text of the error messages if you want help with them.
To correct the compiler error, make sure that no methods are defined inside of other methods.
Make that change, get a clean compile and THEN write code for the main() method.
One step at a time.
Try moving the method outside of the {}s that surround the code for the main() method.
You may not need a new class.