0
왜 그런지 모르겠지만 eclipse는 "구문 오류, 삽입"... VariableDeclaratoid "FormalParamaterList를 완료하려면"내 setter 메서드에 오류가 있습니다. "개체의 설정 메서드에서 오류가 발생했습니다
public class Student {
public int id;
public String name;
Student() {
}
public int getID() {
return id;
}
public void setID(i) {
this.id = i;
}
public String getName() {
return name;
}
public void setName(n) {
this.name = n;
}
public String toString() {
System.out.println("The student's name is: " + this.name);
System.out.println("The student's ID is: " + this.id);
}
}
물론! 고맙습니다. – surveySays
@surveySays는 내 대답에 동의 함을 표시해야합니다. :) – WilomGfx