// Arup Guha
// 8/15/2019
// Framework for 2018 AP FR Question #2: WordPairList

import java.util.*;

public class WordPairList {

	private ArrayList<WordPair> allPairs;
	
	public WordPairList(String[] words) {
		// Fill this in.
		allPairs = new ArrayList<WordPair>();
	}
	
	public int numMatches() {
		// Fill this in.
		return 0;
	}
	
	// Just for testing.
	public String toString() {
		String res = "";
		for (WordPair p: allPairs)
			res = res + p + "\n";
		return res;
	}
	
	// A simple test but added more than 2 copies of a string as it's an important case.
	public static void main(String[] args) {
		String[] stuff = {"hi", "bye", "a", "a", "hi", "hi", "hi", "low", "q", "q"};
		WordPairList wplist = new WordPairList(stuff);
		System.out.println(wplist);
		System.out.println("# of matches = "+wplist.numMatches());
	}
}