2018 ap computer science a free response answers wordpair
public WordPairList(String[] words)
{
allPairs = new ArrayList<WordPair>();
for(int i = 0; i < words.length; i++)
for(int j = i + 1; j < words.length; j++)
allPairs.add(new WordPair(words[i], words[j]));
}