am reading a file line by line...But in some case some exception comes,i catch exception but program not exceute next line. please tell how skip the exception comes on line and exceute next line.I used this but it shows compilation error finally{ continue; } but it shows compilation error try {
} catch (Exception e) {//Catch exception if any System.err.println("Error: " + e); e.printStackTrace();
}
} catch (Exception e) {//Catch exception if any System.err.println("Error: " + e); } finally{ continue; } }
Harsha Jay
Ranch Hand
Joined: Jul 23, 2001
Posts: 177
posted
0
1.) You have posted in the wrong forum. Try this forum 2.) The moderators are going to ask you to change you login name, since it does not follow javaranch policy. 3.) Comment out the continue in the finally block and if you wish to ignore an exception, you can do this by not handling it by just having empty braces.
Hope this helps!
Harsha [ November 12, 2006: Message edited by: Harsha Jay ]