J
Jon Agiato
Hello all,
Here is the jist of my situation:
I have an ArrayList of class A.
class A contains a Stack of class B.
I need to add instances of class B to the Stack in each instance of class A
within the ArrayList like so (except correct, hehe):
classA[blahblah].stackInA.add(new classB(blah));
The problem is, this syntax gives me the following error:
'object' does not contain a definition for 'stackInA'
Thanks!
Here is the jist of my situation:
I have an ArrayList of class A.
class A contains a Stack of class B.
I need to add instances of class B to the Stack in each instance of class A
within the ArrayList like so (except correct, hehe):
classA[blahblah].stackInA.add(new classB(blah));
The problem is, this syntax gives me the following error:
'object' does not contain a definition for 'stackInA'
Thanks!