In order for this assignment to work, frames
needs to be declared as byte[][]
in the class that has the setFrame
method:
private byte[][] frames;
From the error that you posted it appears that frames
is declared as byte[]
, not as byte[][]
. That's why the compiler suggests making f
a byte
.