Where are x and y given values in that method where those variables are defined? They are given a value of 0 when they are defined and that value is never changed in the method where their values...
Type: Posts; User: Norm
Where are x and y given values in that method where those variables are defined? They are given a value of 0 when they are defined and that value is never changed in the method where their values...
Please copy the full text of any error messages and paste them here so we can see them. Don't post images as their contents can not be copied to include in a response.
It does what it is coded...
A variable is defined by coding a data type like int or char or a class like String:
int anInt; // defines an int variable
String aStr; // defines a reference to a String object.
...
If there are error messages, please copy the full text and paste it here.
The compiler can not find a definition for that variable that is in scope where it is being used.
The compiler can not find a static method named: printMessage in the StaticMethodExample class. Check the spelling.
The compiler can not find a definition for x or y where they are used in the...