• Post Reply Bookmark Topic Watch Topic
  • New Topic

exception handling  RSS feed

 
bairava surya
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone tell me the reason why this program wont compile?



 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
548
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It compiles on my computer. What error message do you get?
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you import IOException correctly?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
548
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Did you import IOException correctly?

Oh! That's why it worked for me. I imported without thinking about it.
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I simply copied‑and‑pasted the “plain” version of the code in the code block and get an “IOException cannot be resolved as a type” error message.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!