📅  最后修改于: 2022-03-11 14:58:17.253000             🧑  作者: Mango
public int numMatches()
{
int matches = 0;
for(WordPair wp : allPairs)
if(wp.getFirst().equals(wp.getSecond()))
matches++;
return matches;
}