How to mix two arrays in Java?
Posted
by roddik
on Stack Overflow
See other posts from Stack Overflow
or by roddik
Published on 2010-04-21T10:26:34Z
Indexed on
2010/04/21
10:33 UTC
Read the original article
Hit count: 252
Hello. I have some String[] arrays, for example:
['a1', 'a2']
['b1', 'b2', 'b3', 'b4']
['c1']
How can I mix them, so that I get ['a1', 'b1', 'c1', 'a2', 'b2', 'b3', 'b4']
(0 element of a, then b, c, 1 element of a, b, c and so on)? Thanks
© Stack Overflow or respective owner