The code will compile if you insert the import for the FileNotFoundException.
import java.io.FileNotFoundException;
Since you declared main throwing IOException, any subclass of IOException will be "accepted" (but being "thrown" by main then). [ January 12, 2007: Message edited by: Anton Uwe ]
cannot resolve symbol error at line 1.but IOException subclass's are throwed here is accepted.right?Please help.
The problem is that the compiler doesn't know what a FileNotFoundException is. When you import a class, then you only get that class and not its subclasses.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
a bit of art, as a gift, the permaculture playing cards