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

 

andersoniii.edwin@cusd80.com > weaveAlternating
prev  |  next  |  chance

Weaving Words (again) - This is a new word game – Read from a data file two words of same length, write a loop that will "weave" the words together. Take the first letter from String str1 and then the last letter from String str2. Continue this pattern and create a new word. Example: happy daddy -> hyadpdpayd


weaveAlternating("happy", "daddy") → "hyadpdpayd"
weaveAlternating("", "") → ""
weaveAlternating("computer", "sciences") → "csoemcpnuetiecrs"

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

public String weaveAlternating(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: 105

Copyright Nick Parlante 2017 - privacy