I got a HashMap and want to iterate it. But somehow it is saying that I have incompatible types.
Required: java.util.Map.Entry <java.lang.String , java.lang.String>
Found : java.lang.Object
Heres my code :
Map hashmapMessagesKey = new HashMap<String,String>();
for (Map.Entry<String, String> entry : hashmapMessagesKey.entrySet()) {
}