왜이 오류가 발생하는지 잘 모르겠습니다. 교정기가 옳은 것 같습니다. 또 다른 것은 동일한 프로그램이 Windows-eclipse에서 작동하지만 Mac에서는 eclipse에서 작동하지 않는다는 것입니다. 그 이유는 무엇일까요?토큰 "잘못된 문자"에 구문 오류가 발생했습니다.이 토큰을 삭제하십시오.
import java.util.Vector;
public class Debug
{
private int something = 0;
private Vector list = new Vector();
public void firstMethod()
{
thirdMethod(something);
something = something + 1;
}
public void secondMethod()
{
thirdMethod(something);
something = something + 2;
}
public void thirdMethod(int value)
{
something = something + value;
}
public static void main(String[] args)
{
Debug debug = new Debug();
debug.firstMethod();
debug.secondMethod();
}
}
나와 함께 잘 작동 –
줄 번호는 무엇입니까? –
@Ed Staub Line 30 – Ava