public class DiceGame1{
public static void main(String[] args){
double value = Math.random();
int number = (int)(value*6+1);
Scanner input = new Scanner(System.in);
System.out.println("买大买小 买定离手");
String choose = input.nextLine();
System.out.println("本次摇出的点数为:"+number);
if((number<=3 && choose.equals("小")) || (number>3 && choose.equals("大"))){
System.out.println("恭喜您 猜对了");
}else{
System.out.println("对不起 您猜错了!!!");
}
}
}D:\test>javac DiceGame1.java
DiceGame1.java:7: 错误: 找不到符号
        String choose = input.nextLine();
                        ^
  符号:   变量 input
  位置: 类 DiceGame1
1 个错误
求大神帮忙看看是哪里的错误,谢谢