IOException can not be resolved to a type error
问题 For my final in Java we have a "exceptions" part on the test with try, catch, and finally calls. When I try to put the example code into Eclipse I get errors in the catch and throw new areas. All of the errors say "Can not be resolved to type". How do I fix this so I can learn/review what the code is supposed to be doing? Q4 Class public static void main(String [] args) { Q4Exception q1 = new Q4Exception(); try{ q1.sampleMethod(); try{ q1.sampleMethod(); } //This catch does not throw an error