• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

[Java] Eight queens help?  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm a little new to Java and am in need of some help with my program, the goal is to make a program which will show all the "eight queens" solutions.

This is an example of one:

I'm currently stuck however, and need help in getting mine working.

Here is the link to my source codes - http://rapidshare.de/files/18428259/files.zip.html (2 files included), both of which do not work at the moment, as i'm unsure of what i'm doing wrong.

If anyone can fix either of these programs, or tell me how to, then i'd appreciate it deeply.

All and any help is appreciated.

- Noxel
Posts: 64483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
It is difficult to help without knowing what goes wrong, and please put your code on the posting if possible. I cannot run your code because the hsa.Console class is not available.
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a very interesting problem and quite common as a homework assignment for beginning programming courses. What problems have you encountered in writing this program? What is "not working" at the moment? Does your code compile? If not, what are the COMPLETE compiler errors? If it does compile, what happens when you run it? How does this differ from what you expect?

If you can provide some insight to what is happening, you might find that you solve the problem yourself. If not, then we can provide some hints and explanations to get you started in the right direction.

Good luck and keep coding!

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!