Adding parent class to arraylist with internal function

.add isn’t really the questionable part here.

Architector asked

and incon appears to be a member of object i which appears to be of type floebox

We don’t know what a floebox is, how it’s defined, or the type of any of its members.

You mentioned that .add is a built in java function but we still don’t know what type of object incon is, since .add is a very ambiguous name that is used in several built in Java classes.

Please take a look at the Guidelines—Tips on Asking Questions page and take special note to the following sections:

  • Is your problem isolated?
  • Can we run your code to see the same thing as you?
1 Like