title: Java: Call/Return Error
body: <p>I am having some trouble returning matrix data from one method to the main class, I am using:</p>
  
  <pre><code>matrix =  setFalse(falseMatrix);
  </code></pre>
  
  <p>to call:</p>
  
  <pre><code>public static boolean[][] setFalse (boolean[][] matrix[][]) {
  
          // Changes each value of the matrix to a false boolean value
  
          boolean[][] falseMatrix = null;
  
          for (int r = 0; r &lt; matrix.length; r++ ) {
              for (int c = 0; c &lt; matrix[0].length; c++ ) {
                  falseMatrix[r][c] = false;
  
              }
          }
          return falseMatrix;
  
      } 
  </code></pre>
  
  <p>I am getting the error that falseMatrix cannot be resolved to a variable, but when I make it a parameter I get a fatal error.</p>