The Hashtable stores values in Key-Value Pairs, with the help of key the value, is
retrieved here.
It has the following methods:
- Add() method to add the elements
- Remove() method to remove the elements
Example 4: Hashtable collection adding and removing the element.
The output will be: