huzain ali wrote:This is my code sir, could you fix it?
i always get this error
Compiling 1 source file to E:\pelajaran\jeni\NetBeansProjects\TimerTask\build\compiled
E:\pelajaran\jeni\NetBeansProjects\TimerTask\src\MainMenu.java:57: exception java.io.IOException is never thrown in body of corresponding try statement catch(IOException ioe)
The compile error is pretty clear. It is located on line 57 of MainMenu.java. And it is complaining that you have a catch block that is trying to catch a checked exception that is never thrown. Hence, the compiler is complaining that the catch block code is *never* ran.
Seems pretty clear. What is it that you have an issue with?
Henry