Originally Posted by
EPC
I honestly have no idea.
--- Update ---
this?
--- Update ---
Thank you! But can you tell me what "this" does. I've gotten the correct answer but I've never seen "this" used before now.
this.<identifier_name> specifies that the identifier is a field of the class since it belongs to "this", to the instance of the class. That is why often you'll see setter methods that look like so:
public void setFoo(int foo) {
this.foo = foo;
}
The this.foo means a class field named "foo" is on the left hand side of the assignment while the parameter of the same name is on the right.