//==============================================================================
// Jotto
//
// @description: Module for providing functions to work with IWordList interface
// @author: Elisha Lai
// @version: 1.0 05/11/2015
//==============================================================================

import java.util.ArrayList;

// Classes implementing IWordList provide a list of
// word-difficulty pairs (Word objects).
public interface IWordList {
   
   // Does the list of words contain a word-difficulty pair with the
   // given word?
   public boolean contains(String aWord);
   
   // The number of words in the list.
   public int numWords();

   // Find a random word. The list must contain at least one word.
   public Word randomWord();
	   
   // Find a random word with the given difficulty in the list.  The list
   // must contain at least one such word.
   public Word randomWord(int difficulty);
   
   // Find one word that passes the given test; the test is typically
   // given by a Hint object (which implements IWordPredicate).  
   // The method should start
   // with a random word in the list and then proceed sequentially through
   // the list until it either finds a word that passes the test or it
   // it exhausts the list, in which case it returns null.
   public Word getWord(IWordPredicate test);
   
   // Find all the words that pass the given test; the test is typically
   // given by a Hint object (which implements IWordPredicate).
   public ArrayList<Word> getWords(IWordPredicate test);
   
   // Find at most maxDesired words that pass the given test; the test is
   // typically given by a Hint object (which implements IWordPredicate).
   public ArrayList<Word> getWords(int maxDesired, IWordPredicate test);
}

@@ -1084,22 +1084,16 @@
 ld start
-%0A   //
  with a 
@@ -1125,16 +1125,23 @@
 nd then 
+%0A   // 
 proceed 
@@ -1160,22 +1160,16 @@
  through
-%0A   //
  the lis
@@ -1194,24 +1194,30 @@
 finds a word
+%0A   //
  that passes
@@ -1235,17 +1235,8 @@
 r it
-%0A   // it
  exh
@@ -1267,16 +1267,22 @@
  case it
+%0A   //
  returns

Update IWordList.java