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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!