package eecs1022.jumbleapp; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; /** * The dictionary, which is the model of this app. * * @author Franck van Breugel */ public class Dictionary { /** * Initializes this dictionary from the given stream. Each line of the file contains a * single word. * * @param stream stream from which a file containing the words of this dictionary can be read. */ public Dictionary(InputStream stream) { Scanner input = new Scanner(stream); while (input.hasNextLine()) { String word = input.nextLine(); } input.close(); } /** * Returns the list of words that are unscramblings of the given word. * * @param word word to be unscrambled. * @return list of words that are unscramblings of the given word. */ public List getUnscramblings(String word) { return new ArrayList(); } }