Using Netbeans 9 under Windows 10, I created in JAVA a class MyClass extends Anotherclass implements List, Serialize and accepted to override the methods from List, e.g. the following add method:
 @Override
    public boolean add(Object e) {
    boolean result = false;
    if (e instanceof Wohnung){ 
          add( (Wohnung) e);result=true;
    }
   return result;
   }
I call it from another class and when I try to use it I get a stack overflow error. Debugging it shows that the methos is called recursively. The code seems to be alright or not? Can anybody help me?
Thanks