public class praogram1
{
Scanner scanner = new Scanner (new File ("t.txt"));
public static void main(String[] args)
{
}
}
ok..im tryin to define it at the class level and i run into this issue now. How do i throw an IOException at this level
Default constructor cannot handle exception type FileNotFoundException thrown by implicit super constructor. Must define an explicit constructor