title: Compare and equals methods stack overflow error
body: <p>Hi this is my first time asking a question so it may not be the best. 
  So I'm working on a project using inheritance and implementation. My problem is when I run my compare or equals methods java gives me a stack overflow error and I have looked everywhere to solve this but am unable to do so. It might just be a simple I don't exactly know what to ask for though. </p>
  
  <pre><code>//this is from the class that inherits
  @Override
  public boolean equals(Object o){
      if(this.equals(o)){
          return true;
      }
      return false;
  }
  //This is what its inheriting from
  public boolean equals(Object o){
      boolean findings;
      findings = this.getStrength().equals(((Weapon)o).getStrength());
      if(strength == ((Weapon)o).strength){
          return true;
      }
      return false;
  }
  
  //this code is an instance of another
  @Override
  public int compareTo(Force o) {
      return this.compareTo(o);
  }
  </code></pre>
  
  <p>Any advice you could give would be greatly appreciated. Thanks.</p>
  
  <pre><code>public class Pizza extends Store {
  public Pizza(int strong){
      super.changeStrength(strong);
  }
  
  @Override
  public boolean equals(Object o){
      if(o!=null){
          if(super.getStrength()==((Pizza)o).getStrength()){
              return true;
          }
      }
      return false;
  }
  }
  </code></pre>
  
  <p>here the code for the pizza class</p>