ここのコードの何が問題なのかわかりません:
package assigment1;
import java.util.Scanner;
public class A1Q2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int Level;
int PureDiamonds;
int ImpureDiamonds;
System.out.print("Please enter the game level (1,2,3,4...): ");
Level = input.nextInt();
それは言いますinput cannot be resolved
、そしてそれは私が古いプロジェクトを持っていてinput.nextInt();
、それが働いているということです。では、何が問題なのですか?それは私を夢中にさせています