📜  主题词一致的问题很难 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:17.253000             🧑  作者: Mango

代码示例1
public int numMatches()
{
  int matches = 0;

  for(WordPair wp : allPairs)
    if(wp.getFirst().equals(wp.getSecond()))
      matches++;

  return matches;
}