방금 Java가 시작되었습니다. 이 프로그램Integer.parseInt error
class poop{
public static void main(String[] args){
System.out.println(Integer.parseInt("1"));
}
}
를 컴파일하려고하지만 난이 오류
poop.java:3: error: cannot find symbol
System.out.println(Integer.parseInt("1"));
^
symbol: method parseInt(String)
location: class Integer
./Integer.java:5: error: cannot find symbol
Int a=5;
^
symbol: class Int
location: class Integer
2 errors
무슨 일이야을 얻을?
내가 루 분투
* 전체 * 클래스 목록이 있습니까? – Bohemian
@ 보헤미안 : 아니요. OP는 "public class Integer {}"를 생략하여 문제의 원인을 직접적으로 이끌어 냈습니다.) – paulsm4
아니요, 그는 자신의 클래스 똥을 자신의 파일 인 Integer라고 명명했습니다. – spydon