Question: Write a method combineArray which has four parameters. The first two parameters are String arrays. The last two parameters are integers, which represent the positions

Write a method combineArray which has four parameters. The first two parameters are String arrays. The last two parameters are integers, which represent the positions where we will combine the String arrays. This method will return a String array. This method will create a new String array to hold Strings from the first and second String array. The new array must contain the Strings from the first String array, from the first position up to (and including) the index specified by the first integer parameter. As well, the new array must contain the 1Note that an a has been added to make the quote complete. Page 7 Strings from the second String array from the second integer parameter (but not including) until the end of the second String array. For example, let the first String array be { Hello,, how, are, you, doing?} and the first integer parameter be 2. As well, let the second String array be { I, see, two, giant, rhinos!!} and the second integer parameter be 1. Then, the returned String array must contain { Hello,, how, are, two, giant, rhinos!!}.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!