I am looking for a solution for my 'problem', that isn't an ugly hack.
In my Java code I have two arrays, both of an unknown length (so they will probably be of different length). I would like to sort them like this:
Array A: {1, 2, 3, 4, 5}
Array B: {6, 7, 8}
New Array: {1, 6, 2, 7, 3, 8, 4, 5}
Is there a nice way to accomplish this?
Thanks