Main.java:12: error: wrong number of type arguments; required 2
HashMap<Integer, String> hmap = new HashMap<Integer, Integer, String>();
^
Main.java:15: error: no suitable method found for put(int,int,String)
hmap.put(12,2014, "Chaitanya");
^
method Map.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method AbstractMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method HashMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
Main.java:16: error: no suitable method found for put(int,int,String)
hmap.put(2,2014, "Rahul");
^
method Map.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method AbstractMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method HashMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
Main.java:17: error: no suitable method found for put(int,int,String)
hmap.put(7,2015, "Singh");
^
method Map.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method AbstractMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method HashMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
Main.java:18: error: no suitable method found for put(int,int,String)
hmap.put(49,2015, "Ajeet");
^
method Map.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method AbstractMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method HashMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
Main.java:19: error: no suitable method found for put(int,int,String)
hmap.put(3,2016, "Anuj");
^
method Map.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method AbstractMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
method HashMap.put(Integer,String) is not applicable
(actual and formal argument lists differ in length)
6 errors