Skip to content

Instantly share code, notes, and snippets.

@wviana wviana/123.java
Created May 31, 2016

Embed
What would you like to do?
Map<Integer, Integer> Result= new HashMap<>();
int condition = Math.max(sample.size(), fileTwo.size());
for(int counter=1; counter<=condition; counter++)
{
int match=0;
for(String fileTwoPostionValue : fileTwo.get(String.valueOf(counter)))
{
if(sample.get(String.valueOf(counter)).contains(fileTwoPostionValue))
{
match++;
}
}
Result.put(counter.toString(), match);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.