This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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.