SyntaxFix
Write A Post
Hire A Developer
Questions
When the callee throws an exception i.e. void showfile() throws java.io.IOException the caller should handle it or throw it again.
And also learn naming conventions. A class name should start with a capital letter.