public class EightQueens { static int [] rowNumbers = new int[8]; // ith entry in state, from 0 to howManyPlaced-1, indicates the row number of the rook in column i static int curColumn = 0; private static boolean canBePlaced(int row) { for (int col = 0; col