title: private final int blanki; private final int blankj;
body: <p>I have this code:</p>
  
  <pre><code>public final class Board {
  
      private final int[][] blocks;
      private final int N;
      private final int blanki;
      private final int blankj;
      int i, j;
  
      // construct a board from an N-by-N array of blocks
     public Board(int[][] blocks)  {
  
          this.blocks = new int[blocks.length][blocks.length];
  
          for(i = 0; i &lt; blocks.length; i++){
              for(j = 0; j &lt; blocks.length; j++){
                  this.blocks[i][j] = blocks[i][j];
                  if(blocks[i][j] == 0) {
                      int f = i;
                      int c = j;
                  }
              }
          }
          this.N = this.dimension();
          this.blanki = f;
          this.blankj = c;
      }
  
  }
  </code></pre>
  
  <p>and get following errors:</p>
  
  <p>File: C:\Users\cbozanic\algs4\Board.java  [line: 28]
  Error: f cannot be resolved to a variable
  File: C:\Users\cbozanic\algs4\Board.java  [line: 29]
  Error: c cannot be resolved to a variable
  File: C:\Users\cbozanic\algs4\Board.java  [line: 159]
  Error: The local variable s may not have been initialized</p>
  
  <p>I do not really get what is tat I am doing wrong! Any help will be appreciated.</p>