A simple sentence commandline appilcation which writes the longest word with length, and the shortest word with lenght of the provided sentence to the standard output.
Where a word is any sequence of letters [a-zA-Z] seperated by any other character.
mvn clean install
From the target directory :
java -jar "sdet-1.0.0-SNAPSHOT-jar-with-dependencies.jar" "SENTENCE"
Where SENTENCE for example "The cow jumped over the moon."
java -jar "sdet-1.0.0-SNAPSHOT-jar-with-dependencies.jar" "The cow jumped over the moon."
will return the following :
[main] INFO com.troweprice.sdet.SentenceDetails - The cow jumped over the moon.
[main] INFO com.troweprice.sdet.SentenceApp - Longest : 'jumped,6'
[main] INFO com.troweprice.sdet.SentenceApp - Shortest : 'The,3'
[main] INFO com.troweprice.sdet.SentenceApp - Total time to find min and max word was : '24ms'
See CHANGELOG
Scott Redden