Well you assigned the instance to a global variable. That's how Java knows. If you can see that then so can the Java compiler.
Well you assigned the instance to a global variable. That's how Java knows. If you can see that then so can the Java compiler.