Hi guys im starting to learn
Java by myself and stumbled upon this exercise.
The
method behaves similarly to
, except that it has n different arrays as input. The signature is therefore
. Again, the numbers from the input arrays are to be inserted into the result arrays in turn. Likewise, arrays that have already been completely processed are to be skipped until all values of the input arrays have been used up. If the input array is empty, an empty array is returned.
Example: with
the result is
.
Can anyone help me with the code?
I have tried using the answer from
https://stackoverflow.com/questions/2682053/how-to-mix-two-arrays-in-java but my exercise needs me to use
and i have no idea how to go about it.