Unhandled exception type IOException 컴파일 에러 때 

아래 코드 추가


import java.io.IOException;


try {

// 원래 코드

} catch (IOException e) {

 System.out.println (ex.toString());

}