Question: MUST BE DONE IN JAVA Given an array of strings, return the string in the array that is longest. If multiple strings have the same

MUST BE DONE IN JAVA
Given an array of strings, return the string in the array that is longest. If multiple strings have the same (longest) length, return the first one. Examples: longestString("short", "shortish", "a long string", "no1 "01 Longeststring("abcdefghi", "abcdefghij", "abcdef", "abc 1 public string longeststring(String[1 strs) 2 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
