I have the following code which I need to create a bidimentional array in a dynamic way. The problem arises when you want to create the two-dimensional array fixTemp while assigning the array variable. The compiler tells me it's not easy.
int arregloTemp[][] = new int[arregloDeArreglosBinarios.size()][];
for(int i = 0; i < arregloDeArreglosBinarios.size(); i++) {
int []arreglo = arregloDeArreglosBinarios.get(i);
for(int j = 0; j <= arreglo.length; j++) {
arregloTemp[i] = new int []{arreglo};
}
}