title: In Java, I can't add code after the return statement in a method
body: <p>I'm new at Java, I'm learning about methods with a return statement.
  My IDE says:</p>
  
  <blockquote>
    <p>This method must return a result of type boolean</p>
  </blockquote>
  
  <p>However my method returns only boolean values. How to fix that ?</p>
  
  <pre><code>public class Test {
  public static void main(String[] aargs) {
      debug(4, 5);
  }
  
  public static boolean debug(int a, int b) {
      if(a+b == 12) {
          return true;
      }else if(a+b == 18){
          return false;
      }
      a = 8;
  }
  </code></pre>
  
  <p>}</p>