등록 버튼을 눌렀는데도 페이지가 다음으로 않 넘겨서 일단 다시 올릴께


java 별거 아니네 란 책으로 자바 공부하고 있는데 

아래 코드에서 밑줄 친 부분이 오류라는데


public class Second3 {


public static void main(String[] args) {

// TODO Auto-generated method stub

int ch;

System.out.print("0 또는 1을 입력하세요 : ");

ch = System.in.read();

if( ch == '0')

System.out.println("10 / 3 : " + 10/3);

else

System.out.println("10 % 3 : " + 10%3);

}


}


위에 밑줄 친 부분이 오류이고

오류 결과가

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 

Unhandled exception type IOException


at Second3.main(Second3.java:8)

<p style%