NQueenProblem.java
// This is the function that prints the solution on the output screen

This is the function that prints the solution on the output screen
This is the function that prints the solution on the output screen
void printSolution(int chessBoard[][]) {
	for (int i = 0; i < N; i++) {
	for (int j = 0; j < N; j++)
	System.out.print(" " + chessBoard[i][j]
	+ " ");
	System.out.println();
	}
}
void printSolution ( int chessBoard [ ] [ ] ) { for ( int i = 0 ; i < N ; i ++ ) { for ( int j = 0 ; j < N ; j ++ ) System . out . print ( " " + chessBoard [ i ] [ j ] + " " ) ; System . out . println ( ) ; } }
This is the function that prints the solution on the output screen
This is the function that prints the solution on the output screen