IOException can not be resolved to a type error

后端 未结 4 537
清歌不尽
清歌不尽 2021-01-14 10:09

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

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-14 11:00

    Oh, guess I could answer my own question here. Didn't know I had to import the IOException from java.io!

提交回复
热议问题