Continue to roll ghost card game the dice until either a 7 or the same point value is rolled.
Game rules: Roll two dice.
int subsequentRoll; / Moved to here.
And then there's result.; return result;.Example output for a couple of runs is shown.Do not number your variables.Boolean stop false; while (stop false) stop right there ( badum, tss tesco bonus credit ).(that is if you can't help it in any way) oh by the way, where's keyboard 1 through 3?If the sum is 2, 3, or 12 (called craps you lose; if the sum is 7 or 11 (called natural you win; if the sum is another bonus slots free online australia value (i.e., 4, 5, 6, 8, 9, or 10 a point is established.public class CrapsGame public static void main (Stringargs) String restart "y Scanner scan new Scanner int sumrollDice int points points(sum boolean youWinyouWin(sum, points while(restart.In the isCraps method, you are printing out the total of the dice roll in every if elseif and else code.The "same" three lines of code here and at the start of main.It will only continue to roll til you win.stuff goes on here.Out, and going to keyboard.