import java.util.Random;

public class TimeDictionary {
  public static int timeAdds(int numValues) {
    Dictionary1 dict = new Dictionary1();
	Random randomizer = new Random();
	
    long startTime = System.currentTimeMillis();
    for (int i = 0; i < numValues; i++) {
      String word = "0000000000" + randomizer.nextInt();
      dict.addWord(word.substring(word.length()-10));
    }
    long endTime = System.currentTimeMillis();
		
    return (int)(endTime-startTime);
  }
}
