Skip to content

sredden79/sdet

Repository files navigation

sdet

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.

Installation

mvn clean install

Usage

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'

History

See CHANGELOG

Credits

Scott Redden

License

Apache License v2.0
License

About

SDET test for troweprice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages