I believe the reason is that you should return a copy of the List, not the List itself. This is because someone could manipulate the List outside of the object. An object needs to control its own data.
All things are lawful, but not all things are profitable.
[Let's enhance your class.Remember the + operator on Strings will cause the List's own toString method to be called, so you will get an obvious structure to your printout.Try that, and report back what happens.
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad: