<h3>Output</h3>
Enter a string
This is an example in Computer Application
The length of the largest word "Application" is: 11
[js theme=”” group=”” tab=”” highlight=””]
import java.io.*;
class length_of_largest
{
public static void main()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println(“Enter a string”);
String S=br.readLine();
String max=””, w=””;
S=S+” “;
int l=S.length(), i;
char ch;
for(i=0;i