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

 

jebbert@volusia.k12.fl.us > oct29totalLength
prev  |  next  |  chance

Write a method that returns the total length of the combination of two strings. Parameters str1 and str2 will be passed in containing two strings of any length. Return the length of the string resulting from concatenating str2 to the end of str1.


oct29totalLength("Episode 4 was the best", " ever") → 27
oct29totalLength("test", "short") → 9
oct29totalLength("raining", "outside") → 14

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

public int oct29totalLength(String str1, String str2) { }

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

Copyright Nick Parlante 2017 - privacy