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

 

weaveWords3


Weaving Words3 - This is a new word game - Given two words of different length, write a program that will "weave" the words together. Take the first letter from String str1 and then a letter from String str2. Continue this pattern. When you run out of letters from the shortest string, finish with the rest of the letters from longest string. Return the resulting "Weave Word".


weaveWords3("science", "computer") → "sccoimepnucteer"
weaveWords3("alphabet", "soup") → "aslopuhpabet"
weaveWords3("words", "weaving") → "wwoeradvsing"

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

public String weaveWords3(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: 156

Copyright Nick Parlante 2017 - privacy