Eric
0
Q:

equals stack overflow

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;
}
}
0

New to Communities?

Join the community