Class Lookup

java.lang.Object
  extended byLookup

public class Lookup
extends Object

On line word lookup.

Version:
4
See Also:
Dictionary, Definition

Constructor Summary
Lookup()
           
 
Method Summary
static void main(String[] args)
          Run the Dictionary lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lookup

public Lookup()
Method Detail

main

public static void main(String[] args)
Run the Dictionary lookup. Parse command line arguments for words to look up, "all" prints the whole Dictionary. Then prompt for more words, "quit" to finish. For example,

 %> java Lookup shape square circle
 shape:
 a geometric object in a plane
 square:
 a rectangle having equal sides
 circle:
 sorry, no definition found for circle
 
 look up words, "quit" to quit
 word> rectangle
 a right-angled quadrilateral
 word> quit
 %>
 

Parameters:
args - the words that we want looked up, supplied as command line arguments. If the word "all" is included, all words are looked up.