<P>I created a subclass to ordered collections. I am trying to add objects to the new class and then print it to make sure they are in there. I add one object it prints but when I add another object and print it only prints the first object i added</P>
<P><STRONG>sample code to add to list.</STRONG></P>
<P>account: aAccount<BR> "Add an account to the portfolio"</P>
<P> self isNil ifTrue:[self add: aAccount]<BR> ifFalse:[ self addLast: aAccount].</P>
<P> </P>
<P><STRONG>code to print list.</STRONG> </P>
<P>ccounts<BR> "Returns the accounts for the portfolio"</P>
<P> self do:[:element|^element number].<BR> </P>
<P> </P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>