<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">public class QueenDemo
{
   public static void main (String [] args) {
     System.out.println("\nThe eight-queens problem is to find all possible");
     System.out.println("positions of eight queens so that none attack any other.");
     System.out.println("Here are the solutions to the 8-queens problem\n");
     // Create the first queen and the rest of the row of 8 queens
     Queen first = new Queen(8,1,null);
     // Try placing the first queen, then the rest in possible ranks in
     // their columns
     first.place();
   }
}
</pre></body></html>