title: error: incompatible types: boolean cannot be converted to int
body: <p>I'm getting the <strong>error: incompatible types: boolean cannot be converted to int</strong> error while compiling the android app in Android Studio. The problem is in only one method.</p>
  
  <pre><code>private static int get_wx_inx(String str) {
      boolean equalsIgnoreCase = str.equalsIgnoreCase("木");
      int equalsIgnoreCase2 = str.equalsIgnoreCase("火");
      if (str.equalsIgnoreCase("土")) {
          equalsIgnoreCase2 = true;
      }
      if (str.equalsIgnoreCase("金")) {
          equalsIgnoreCase2 = 3;
      }
      return str.equalsIgnoreCase("水") ? 4 : equalsIgnoreCase2;
  }
  </code></pre>
  
  <p>I don't know what could be wrong. Can you help me to figure out the problem. Thanks in advance.</p>