Longest word in a sentence
In this challenge you need to find the longest word in a sentence. If the sentence has more than one word of the same length you should pick the first one.
input data: this is a sample sentence output: sentence
View Code Template
input data: Both adventure and adventist are pretty long output: adventure
View Java Solution