I'm trying to use a variable from one class file inside another class file.
The original variable is public boolean keyFound = false;
When I try to access the variable I use Event01.keyFound;
it gives me an error. I tried using a getter method that returns this.keyFound and it gives me the same error only it says non-static method cannot be referenced from a static context.
The original variable is public boolean keyFound = false;
When I try to access the variable I use Event01.keyFound;
it gives me an error. I tried using a getter method that returns this.keyFound and it gives me the same error only it says non-static method cannot be referenced from a static context.