Write a method named longestword that accepts a string as


Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.

A word is a sequence of one or more non-space characters (any character other than the space character).

You may suppose that the string doesn't contain any other white-space characters such as tabs or newlines.

Can somebody help!!! Can somebody provide the solution?

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a method named longestword that accepts a string as
Reference No:- TGS0946987

Expected delivery within 24 Hours