title: how to check if two dimensional array is empty
body: <p>how can I check if this two dimentinal array is empty?</p>
  
  <p>this is  my code :</p>
  
  <pre><code>      String[][] user = new String[5][3];
  
          System.out.print(user.length);
  
              if (user.length == 5 ){
                  System.out.print("\n empty");
              }
  
          for (int j=0; j&lt;3; j++) {
              System.out.print(" " + user[0][j]+ "\n");
          }
  </code></pre>
  
  <p>and the output is :</p>
  
  <pre><code>5
   empty null null null
  </code></pre>
  
  <p>Does anyone have an ide about my situation?</p>