You can't declare function inside function. You have to pull function out from main() to the Main.class
548k questions
547k answers
4 comments
86.3k users