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

 

srp4379@lausd.net 1-stringbasics > sum3Lengths
prev  |  next  |  chance

public int sum3Lengths(String s1, String s2, String s3)

Given THREE Strings, return the SUM of their lengths.


sum3Lengths("cat", "hippo", "parrot") → 14
sum3Lengths("treasure", "island", "Lost") → 18
sum3Lengths("", "0123", "98765") → 9

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

public int sum3Lengths(String s1, String s2, String s3) { }

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: 2

Copyright Nick Parlante 2017 - privacy