java - Initialized 2d array of int prints out zero -


i'm trying initialize 2d array using braces notation follows:

int[][] matrix = {{0, 2, 1}, {1, 2, 3}, {3, 2, 1}}; int[][] out = rotate(matrix);  for(int = 0; < 3; i++){     for(int j = 0; j < 3; j++){         system.out.print(matrix[i][j] + " ");     }     system.out.println(""); } 

for output, getting

0 0 0   0 0 0   0 0 0  

can tell me problem?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -