This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
This seems like a basic problem, but I am having a lot trouble solving it. Basically, I need to output all of the rules from the class rules if the criteria are met in the nested if statement in the class Craps. There is more code after rules, but it is irrelevant. My compiler tells me "cannot return a value from method whose result type is void".
I realize I could simply copy and paste the entire rules class to the spot in the nested if statement, but this is not kosher according to my professor. Can someone point me in the right direction please