Question is left here because people answered it, my problem was that the version of the API I was using was out of sync with the docs I had....You can in fact do this.
Is there any way to use a 2-d array in Java as an argument for an argument that expects a vararg of arrays?
The function I am trying to call is
public Long sadd(final byte[] key, final byte[]... members) {
and I have a 2-d array of bytes(byte [][] data=blah)
however if I try to call
sadd(key,data);
I get the following compiler error:
(actual argument byte[][] cannot be converted to byte[] by method invocation conversion)
Is there any way to use a 2-d array as a vararg of an array type?
char[] chars = new char[string.length()]