The question was left here because people answered it, my problem was that the version of the API that I used was not synchronized with the documents that I had ... You really can do this.
Is it possible to use a 2-dimensional array in Java as an argument to the argument that vararg arrays expects?
The function I'm trying to call is
public Long sadd(final byte[] key, final byte[]... members) {
and I have a 2nd byte array (byte [] [] data = blah)
however, if I try to call
sadd(key,data);
I get the following compiler error:
(the actual byte of the argument [] [] cannot be converted to byte [] by converting the method call)
Is it possible to use a 2-dimensional array as a vararg array type?
source share