A method to combine a list of arrays: variable number of arrays. Method signature
public static <T> T[] combine(T[] ... a) {
...
}
byte[] a = [];
byte[] b = [];
byte[] c = [];
combine(a, b, c); // compiling error
What is the right way to define the method signature for variable number of arrays. Thanks.
Tto combine them into?