|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTokenClassifier
public class TokenClassifier
The TokenClassifier Java appication takes a list of words and
catagorizes them into queues based on the first letter in them.
| Constructor Summary | |
|---|---|
TokenClassifier()
|
|
| Method Summary | |
|---|---|
static void |
buildQueues(java.lang.String fileName)
Sets up and stores the words from the input file into appropriate queues. |
static void |
main(java.lang.String[] args)
The main method makes sure there is a command line argument, then creates the TokenClassifier and builds queues, finally, it prints the queues. |
static java.lang.String |
makeUpper(java.lang.String lower)
Change a string with lowercase letters into all uppercase |
static void |
printQueues()
Prints the queues in alphabetic order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenClassifier()
| Method Detail |
|---|
public static void printQueues()
-none -
public static void buildQueues(java.lang.String fileName)
throws java.lang.Exception
fileName - the file that the words will come from
java.lang.Exception - Is thrown when fileName is not a valid file.public static java.lang.String makeUpper(java.lang.String lower)
lower - a string in any case
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception - When there is none, or more than one argument in command line.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||