title: How do I declare an array in bluej?
body: <pre><code>  private Piece[][] board;
  
   public cboard(){
        this.board = new Piece[8][8];
      }
  
    public  boolean isEmpty(int x, int y){
        boolean empty= true;
          if (board[x][y] != null){
            empty= false;
          }
        return empty;
   }
   public void placePiece(Piece, int x, int y){
       if(isEmpty(x, y)){
          board[x][y] = piece;
       }
   }
  }
  </code></pre>
  
  <p>Will this create an array for the pieces?
  The function has to check wether or not the place is empty </p>