Question: Below are the parameters required to solve the equation. any help would be great. * EXERCISE ONE If Write a method and call it to
* EXERCISE ONE If Write a method and call it to f ind the longest word in inputstring. II Complete findlongestword() 1 usage t github-dassroom(boi). public statie String findlongestllord(String inputString)f II First convert the inputstring String variable to an array of words II Loop through the words and f ind the longest word If Store the longest word in a variable II Return the longest word stored in that variable II HINT: If the multiple words have the sane length return the first long. String =="; 11 Write your code below return longesthord; I 4 uages 4 githb-dasiroontbon publie static vola exerefseone (string inputstring) 5ystes,out,printin("Exercise 1"): 11 Mow we call findtongestword inside the method exercisedne. string Longestiord = findtongesthord(inputstring); Systee.out, peintun("the Longest word is: " + Longestword)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
