static int[][] vytvorMatici( int n ) { int[][] m = new int[n][n]; for( int i = 0; i < m.length; i++ ) { m[i][i] = i + 1; } return m; }