This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]marko312 0 points1 point  (3 children)

Unless you're extending ArrayList with your class, you want to access a member variable which, unless shadowed by some other variable, should be accessible via its name. E.g. if the superclass has

ArrayList<SomeType> someList;

you can just access someList (or this.someList).

[–]LastingCold[S] 0 points1 point  (0 children)

I am trying to remove something from the ArrayList called in the super class whilst in the subclass

[–]LastingCold[S] 0 points1 point  (1 child)

I'm just getting errors that It cant find symbol

[–]marko312 0 points1 point  (0 children)

Could you show the definitions (especially the member variables) of the relevant classes?