Hey guys,
I need to produce an output such as {{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}};
I have no input paramethers so I assume I need to have int[] array= {0,0,0,0,0} and then make 2d array of it?
I tried
int [][] arrayOfSets = new int[0][25];
int [] a = {0,0,0,0,0};
for(int i=0; i<1;i++){
for(int j=0;j<5;j++){
array2d[i][j] = a[i];
}
}
return arrayOfSets;
But I get error array value is required pointing at a[i]
Any suggestions/ideas?