title: Translating a ternary operation to an if/else statement?
body: <p>I have the following boolean method in Java, but I can't understand its return statement because it uses a ternary operation. Can anyone rewrite it to an if/else statement so that I can better understand what the ternary operation is doing?</p>
  
  <pre><code>    public boolean collidesWith(Rectangle object){
      return (isDestroyed)? false:hitbox.intersects(object);
      }
  </code></pre>