Incompatible types. Found: 'java.io.File', required: 'java.lang.String' Unhandled exception: java.io.FileNotFoundException Unhandled exception: java.io.IOException #125711
Unanswered
FreeQAOnline
asked this question in
Programming Help
Replies: 2 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hi, can you please specify at which line the specified error is occurring? Again in line 18, we cannot check equality of strings using '==' operator. Instead, you can use .equals() function. In the catch block we should catch Exception not error. I hope you will find this useful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions