What is the best way to index the 2d arrays in Java? I want to use these arrays in a cycle and how this will be possible?
enter code here int [][] arr0 = {{1,1,1},{0,0,1},{0,0,1}}; enter code here int [][] arr1 = {{1,0,0},{1,0,0},{1,1,1}}; enter code here int [][] arr2 = {{1,1,1},{1,0,0},{1,0,0}}; enter code here int [][] arr3 = {{0,0,1},{0,0,1},{1,1,1}};
Or how can I use them like "arr* [][]" ?
Thanks for help.
