Quote:
Originally Posted by nogono What exactly do you mean by this syntax?
if(this.running!=running)
{
} |
That means you have both
instance variable of running and
local variable of running. this.running refers to the instance of the running variable (outside of your method), while running is refers to the local variable.
For example:
PHP Code:
private int hello = 1;
public void test() {
int hello = 2;
System.out.println(this.hello); // printing 1
System.out.println(hello); // printing 2
}
Hope that helps
