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