It's more of a curiosity than anything else. The vertical spacing and resultant 'pacing' in your source code appears to be inconsistent and arbitrary. I see it often, and I always wonder why it's...
Type: Posts; User: GregBrannon
It's more of a curiosity than anything else. The vertical spacing and resultant 'pacing' in your source code appears to be inconsistent and arbitrary. I see it often, and I always wonder why it's...
In the code you posted, it WAS not static, so you must mean that you added the static keyword.
And, yes, I already explained to you that the class with the main() must be the top-level public...
The main() method must be declared static, and it must also be in the top-level public class.
Your class Point3DOverloadConstructors is currently enclosed in Point3D because (I think) you missed...
Does the class have a main() method? If yes, then post the code so that we can see what's wrong with it.