What about that error message don't you understand? I realize they can be a bit cryptic (sometimes), especially if you haven't taken the time to READ them and apply them to your code and the error...
Type: Posts; User: GregBrannon
What about that error message don't you understand? I realize they can be a bit cryptic (sometimes), especially if you haven't taken the time to READ them and apply them to your code and the error...
Specifically, is the "return a;" statement in main() required? I suspect not, especially since it's not allowed in a void method which main() must be.
To print the value returned by your method...
The error message is quite helpful. No 'void' method can have a return statement. Why is the return statement in your void main() method? What are you trying to do?