I'm attempting to rewrite all the values in a properties file into a hashmap but when I attempt to run this code
for (String keys: properties.entrySet())
{
hMap.put(keys, properties.get(keys));
}
I get the following error.
The method put(String, String) in the type Map<String,String> is not applicable for the arguments (Map.Entry<Object,Object>, Object)
I understand that one is a String type and one is a Object but I have no idea how to fix it becuase I'm pretty new to programming...