Word-ladder in Java

Word-ladder – application can find a “ladder” from one word to another. A ladder is a set of adjacent words like:

cat, cut, but

Application uses breadth-first-search algorithm to find the shortest route from one given word to another.

Usage

$ java -jar WLadder.jar /home/agilob/dict.txt 2 clock abuse
1. clock
2. clack
3. flack
4. flask
5. flash
6. slash
7. swash
8. awash
9. abash
10. abase
11. abuse</code>
 
$ java -jar WLadder.jar
Type 1 for generation mode
or 2 for tree word-ladder mode:
2
Provide full path to dictionary:
/home/agilob/dict.txt
Provide first word:
clash
Provide second word:
clock
1. clash
2. class
3. clans
4. clank
5. clack
6. clock
 
$ java -jar WLadder.jar /home/agilob/dict.txt 2 zooey zooks
1. zooey
2. gooey
3. gooky
4. gooks
5. zooks
 
$ java -jar WLadder.jar /home/agilob/dict4.txt 2 scus paus
1. scus
2. slus
3. plus
4. paus

[Total: 0    Average: 0/5]