id/email
password
forgot password
about | help | done | prefs | create account
JavaBat java practice problems

String-2 > mixString
prev  |  next  |  chance

Given two strings, A and B, create a bigger string made of the first char of A, the first char of B, the second char of A, the second char of B, and so on. Any leftover chars go at the end of the result.

mixString("abc", "xyz") → "axbycz"
mixString("Hi", "There") → "HTihere"
mixString("xxxx", "There") → "xTxhxexre"

...Save, Compile, Run

See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  JavaBat  >  String-2

Forget It! -- delete my code for this problem 227.0

Copyright Nick Parlante 2006-09 - privacy