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

String-1 > minCat
prev  |  next  |  chance

Given two strings, append them together (known as "concatenation") and return the result. However, if the strings are different lengths, omit chars from the longer string so it is the same length as the shorter string. So "Hello" and "Hi" yield "loHi". The strings may be any length.

minCat("Hello", "Hi") → "loHi"
minCat("Hello", "java") → "ellojava"
minCat("java", "Hello") → "javaello"

...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-1

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

Copyright Nick Parlante 2006-09 - privacy