import java.io.*; import java.util.*; public class MadUtils { /* * This method will lookup the word in the MadDictionary d. * If it does not exists, the method return null; * */ public static StringBuffer lookupWord(String word, MadDictionary d) throws IOException { return lookupWord(word, d, null); } /* * This method will lookup the word in the MadDictionary d. * If it exists in the dictionary, it is returned. * If it does not exist, and keyboard is not null, it will * prompt for the MadDefinition, add it to the MadDictionary, and return it. */ public static StringBuffer lookupWord(String word, MadDictionary d, BufferedReader keyboard) throws IOException { String str; definition = null; return definition; } /* * This method returns the MadWord, which is the text within [ and ]. * The method return null if there is no MadWord (no [ ], empty string, null pointer, ...) * */ public static String getMadWord(String str) { String str = null; return str; } // This method returns a String that has the text within [ and ] of madWord replaced with newWord. public static String replaceMadWord(String madWord, String newWord) { String str = null; return str; } }