You still have problems with your method blocks and braces. The only problem with your first version was that you tried to declare the methods inside the main() method rather than outside of it. You can't declare methods within methods.

The second version has no code at all in main() and many other empty blocks (between braces). You need to fix all of those brace problems so your class is structured properly. example