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.
When I run this Craps program my int variable "total" will go back to its original value (chips) every time the do loop reiterates. I want the total to keep track of all of the iteration until it reaches 0. Any ideas why? It's probably something simple, but I really can't figure it out right now.
Why have you made all your methods static?
Go through your loop with a pencil and paper, writing down the values of the point and rolls after each iteration. Or alternatively, add some System.out.println() statements which display the values as you run your application.
Never write == true or ==false. That is not only poor style, but may cause nasty errors if you mistakenly write = instead of ==.
Don't create a new Random object every time. If you are testing, use the Random constructor which takes a seedThat way, you will get the same sequence of numbers out of it (I think), which might make testing easier.