/** This program will help you check spelling. The user will enter a word, * and the program will check to see if the word is in its dictionary. */ import java.io.*; public class Driver { public static void main(String [] args) throws IOException { BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); System.out.print ("enter a word to search for: "); String word = kbd.readLine(); // Set up the spell checker, and then look up the word. Spell checker = new Spell(); if (checker.findWord(word)) System.out.println("Yes! The word " + word + " is in my dictionary."); else System.out.println("Uh-oh. " + word + " isn't in my dictionary."); } }