title: The destruction of objects in the java game
body: <p>I have the object bonus in my java game. When the object hero touches the object bonus, the object bonus must be destroyed, disappear from the screen and not take up the memory.
  How to do it?</p>
  
  <p>Thanks in advance for your help.</p>