<P>I made an instance of collection and trying to print out what is in the collection.&nbsp; The way I coded seems to only print out the last obect that I added.</P>
<P>&nbsp;</P>
<P><STRONG>code</STRONG></P>
<P>portfolio: aAccount</P>
<P>portfolio:= SortedCollection new.</P>
<P>portfolio sortBlock:[:x :y | x name &lt; y name].</P>
<P>portfolio add: aAccount.</P>
<P><STRONG>code to print portfolio</STRONG></P>
<P>portfolio isNil ifTrue:[Transcript show: 'Portfolio empty'].</P>
<P>ifFalse:[portfolio do:[:element | Transcript show: element name]].</P>
<P><STRONG>***if you are wondering y i did not use isEmpty instead I tried and it was giving me errors turned out isNil worked just fine.&nbsp; That fact that I could not use isEmpty make me wonder is porfolio is really a collection.***</STRONG></P>
<P><STRONG></STRONG>&nbsp;</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>