Write a program to add elements to the HashMap given the key and value data type is String? code example
Example: how to create a hashmap in java
HashMap<Integer,String> map=new HashMap<Integer,String>();//key is integer, value is String
HashMap<Integer,String> map=new HashMap<Integer,String>();//key is integer, value is String