I'm trying to translate a Boolean Retrieval Model search engine and can't translate this piece of code to Java.
C#:
foreach(KeyValuePair<string ,List<string>> p in documentCollection){}
Java:
for(Map<String, ArrayList<String>> p : documentCollection){}
Unfortunately Java giving me this error:
for-each not applicable to application type
Thanks in advance!