> You don't "destroy an instance of a class" in Java. You let go of all > references to it, and it gets garbage collected.
You sound like a beginner, so just to clear this up: letting go of all references means nullifying it. Like: laser1 = null; and if that's your only reference to the resource laser1 was pointing to, it is now released and ready for garbage collection. Another way to let go of the reference [and more applicable for your case] would be when you remove it from the ArrayList. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

