main method can go anywhere in the class scope, so where you have chosen will work, however, most choose to put it at the end (just before the last } )
Type: Posts; User: JonLane
main method can go anywhere in the class scope, so where you have chosen will work, however, most choose to put it at the end (just before the last } )
Java needs a starting point for the program to begin is linear understanding of your code.
This starting point is always the main method (to my knowledge)
Try adding this method in your...
need a main method to start!
If that attachment is code, cut and paste it into the chat and wrap it in "[.code] [./code]" (taking out the periods)
More people are willing to read code if it is done like this, few will be...