-1
나는 자바에있는 작은 게임을 쓰기 위해 노력하고있어 그것은 오류를 팝업 계속 : in.nextInt
에기호를 찾을 수없는 이유는 무엇입니까? in.nextInt 오류?
cannot find symbol
합니다. 다른 코드가 in.nextInt
일 정도로 잘 작동하기 때문에 조금 엉망입니다.
import java.util.Scanner;
public class Player
{
int difficult = 3;
public Player()
{
}
public void SetDifficult()
{
Scanner in = new Scanner(System.in);
System.out.println("choose your difficulty:\n1. simple\n2. easy\n3. normal\n4. hard\n5. impossible");
difficult = in.nextint();
...
}
이 오류가 발생하는 이유는 무엇입니까?
'in.nextInt()와
,' – August
는 자바 독에서 순간적가 너희에게 준 것 대답! – fge
지금 나는 어리 석다. – dragsvart