简单 import java.util.*; public class Frequency { public int getFrequency(String[] article, int n, String word) { // write code here int num = 0; for (int i = 0 ; i < n ; i ++) { if(article[i].equals(word)) { num += 1; } } return num; } }