Is the following usage of "this" to refer to an instance variable in the current class acceptable? In PHP this is how you would have to do it, but I noticed in Java you can just call the variable by name directly.
I personally find "this.variable" to be more understandable but I don't want to develop bad coding habits if that isn't normal.
Thanks!
public class MyClass {
/**
* Private variable
*/
private int myInt;
/**
* Setter method
*/
public void setMyInt(int value) {
this.myInt = value;
}
}