NQueeens (Unable to find the error)

public class NQueens
{
public static void main(String[] args)
{
boolean[][] board= new boolean[4][4];
System.out.println(countnQueens(board, 0));
}
public static int countnQueens(boolean[][], int row)
{
if(row==board.length)
{
return 1;
}
int count=0;
for(int col=0;col<board[row].length;col++)
{
if(isItsafe(board, row, col))
{
board[row][col]=true;
count=count+countnQueens(board, row+1);
board[row][col]=false;
}
}
return count;
}
private static boolean isItsafe(boolean[][] board, int row, int col)
{
for(int i=row;i>=0;i–)
{
if(board[i][col])
{
return false;
}
}
for(int i=row, j=col;i>=0&&j>=0;i–,j–)
{
if(board[i][j])
{
return false;
}
}
for(int i=row,j=col;i>=0&&j<board.length;i–,j++)
{
if(board[i][j])
{
return false;
}
}
return true;
}

}

hi bro, here it should be boolean[][] board, no name is given. Apart from that what problem are you facing in this, lemme know!
Happy coding!

Thank you sir!
Got it

@jdkatti no problem bro, here to help, just close the doubt by marking it resolved!