Well for one, make the method static otherwise the feild "numMyClass" is a new value every instance, and in terms of removing, you need to override the "finalize" method, called by the garbage...