#Java-Methods Help
9 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @granite palm! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
if you create a method OUTSIDE the main method then yes, it wont be run. so you NEED to call that method INSIDE the main method for the code inside it to execute
i suck at explaining 
Why are methods should be outside of the main method ?
Because a method can't contain a method. At least, not directly. main() is not special in that regard
I thought only code inside the main method will only be executed ?
Then you thought wrong. main() is where the program starts. Nothing more, nothing less.
That does imply that when main() calls other parts of the code, and it usually will, then these other parts are executed as part of running main() from start to finish