how to use hashmap for 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