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

 

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

Un-Weaving Words - This is a new word game - Given one word, write a program that will "un-weave" the word into two words of same length. Take the first letter from String combo and place into the first string and take the next letter and place into second string. Continue this pattern and return the resulting "Un-Weave Word" into two words. Return the first string concatenate with the second to return one "double word" with a hyphen in the middle. example:"mdoamd" becomes: "mom-dad"


unWeaveWords1("mdoamd") → "mom-dad"
unWeaveWords1("") → "-"
unWeaveWords1("csocmipeuntceers") → "computer-sciences"

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

public String unWeaveWords1(String combo){ }

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

Copyright Nick Parlante 2017 - privacy