Question: Write a method mixIt, that receives 2 strings and returns a string containing the first char of string1, the first char of string2, the second
Write a method mixIt, that receives 2 strings and returns a string containing the first char of string1, the first char of string2, the second character of string1, the second character of string2 etc. Any leftover chars go at the end of the returned string
Step by Step Solution
3.52 Rating (149 Votes )
There are 3 Steps involved in it
To solve this problem we need to write a method mixIt that takes two strings as input and alternates their characters in the output string If one stri... View full answer
Get step-by-step solutions from verified subject matter experts
