You now have two definitions for getnumber1 and getnumber2. The ones in the main() method will get values, the ones outside will not.
Type: Posts; User: Norm
You now have two definitions for getnumber1 and getnumber2. The ones in the main() method will get values, the ones outside will not.
What didn't work? If there are errors, don't ignore them, copy and paste them here.
The error is probably about using non-static methods. Your short and simple program doesn't use classes for your...