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.