id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

zz520_longestString


Given an array of Strings, return the longest String. If the array is empty, return the empty String.


zz520_longestString(["Hello", "Bye", "I"]) → "Hello"
zz520_longestString(["Bye", "I"]) → "Bye"
zz520_longestString(["", "I"]) → "I"

...Save, Compile, Run (ctrl-enter)

public String zz520_longestString(String[] sArray) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy