得到一个错误说我需要另一个while语句,我已经多次检查过}但是idk有什么问题
如果用户输入"y"我怎么也重新运行程序
谢谢
import java.util.Scanner;
public class Charles_Peppers_Prog6 {
public static void main(String[] args)
{
Scanner user = new Scanner(System.in);
// display the welcome / instructions
System.out.println();
System.out.println();
System.out.println(" Welcome to Computer Dice");
System.out.println("----------------------------------------------");
System.out.println("You will be playing dice against the computer");
System.out.println();
System.out.println("you can only win with a Pair or a Straight");
System.out.println("any Pair beats any Straight");
System.out.println("any Pair beats any Junker");
System.out.println("any Straight beats any Junker");
System.out.println("in case of two Pairs - high Pair wins");
System.out.println("in case of …Run Code Online (Sandbox Code Playgroud) java ×1