I
Ike
Yow! This doesnt do what I thought it would do! If I have a 2D boolean
array, and say I set a tuple to all false, then go to set the other tuples
using Arrays.fill as in the third line below:
boolean brod[][]= new boolean[3][3];
Arrays.fill(brod[0],true);
Arrays.fill(brod,brod[0]);
Then, if I subsequently set, say brod[0][1]=true; then all brod[?][1] become
true.....but I dont want that at all! How can I use Arrays.fill to fill a 2D
(or N-D) array? thanks, Ike
array, and say I set a tuple to all false, then go to set the other tuples
using Arrays.fill as in the third line below:
boolean brod[][]= new boolean[3][3];
Arrays.fill(brod[0],true);
Arrays.fill(brod,brod[0]);
Then, if I subsequently set, say brod[0][1]=true; then all brod[?][1] become
true.....but I dont want that at all! How can I use Arrays.fill to fill a 2D
(or N-D) array? thanks, Ike