How to find smallest and largest word in a string in java?

Posted by Ramesh Singh | Updated on

Want to find smallest and largest word in a string in java? Use the following Java program to find smallest and largest word in a string using java programming language.

Java Program to find Smallest and Largest Word in a String

Copy the below Java program and execute it to see the real time program Output.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers