title: How to check if a certain method has been called?
body: <p>I am trying to make a <em>pop</em> effect for this game that I am creating, and I have run into a problem when trying to check if the method has been called.</p>
  
  <p>I have already took a stab at what I think should work the only problem is the Boolean method, and I have created always returns true?</p>
  
  <p>Here is the code for the class that I think is <strong>causing</strong> the problem:</p>
  
  <pre><code>public class Handler {
      LinkedList&lt;GameObject&gt; object = new LinkedList&lt;GameObject&gt;();
      public static boolean blank = false;
      public void tick(){
          for(int i = 0; i &lt; object.size();i++){
              GameObject tempObject = object.get(i);
  
              tempObject.tick();
          }
  
      }
  
      public void render(Graphics g){
          for(int i = 0; i &lt; object.size();i++){
              GameObject tempObject = object.get(i);
  
              tempObject.render(g);
          }
  
      }
  
      public void addObject(GameObject object){
          this.object.add(object);
      }
  
      public void removeObject(GameObject object){
          blank = true;
          this.object.remove(object);
      }
      public static boolean hasObjectRemoved(){
          if(blank = true){
              blank = false;
              return true;
          }
          return false;
      }
  
  }
  </code></pre>
  
  <p>As you can see, I am trying to check whether or not the <code>removeObject</code> method has been called or not. </p>