Vijayakumar Rengaraj wrote:The content of the collection will not change with respect to the retrieval, You can get the elements of the collection based on the position(in case of List) any any time.
Arent Stacks and Queues also collections? In that case it's requestet that the contents change (push/pop etc.).
As for the original question: I don't understand what you're asking. You have a collection with ten objects in it, and then some randomly numbers ... how do they fit in there? Can you phrase the question again?