Appending object into a collection of objects

Hi

Can anyone please tell me how to append an object into a collection of
objects.
I have seen it somw where is possible to use the each method by
declearing a variable. This will be from 2 tables with many to many
relationship. Any idea on how to do it ?