This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i really really need help on this magic square program. first of all, i have been to numerous websites and still don't get the algorithm. Second, i am supposed to write a code(shown below) that outputs a magic square. could somebody tell ne just generally how to do this? THANK YOU SO MUCH!
On your way in, you may have missed that JavaRanch has a policy on screen names, and yours does not conform to it (it particular, the name must not be obviously fictitious). We take this policy seriously, so please adjust it here.
Thanks, and enjoy your time here.
Joined: Mar 22, 2005
As regards your question, it sound like this is a homework assignment or something. We don't provide people with solutions to those - if you have specific questions, though, we'll try to help. What does the program do so far, and what are you stuck with?
Joined: Dec 11, 2005
i'm sorry, i figured out how to write the code, but i also need to check to see if all the numbers add up correctly. could someone give me some kind of idea to do this? i'm kind of stumped at this point. how would you call the specific numbers in each row? help would be greatly appreciated. does my code look about right so far?