![]() |
VOOZH | about |
public void Add (T item);Here, item is the object to be added to the end of the Collection<T>. The value can be null for reference types. Below given are some examples to understand the implementation in a better way: Example 1: Output:
The number of elements in myColl are : 5 The elements in myColl are : A B C D EExample 2:
The number of elements in myColl are : 4 The elements in myColl are : 2 3 4 5Note: