code segment:
public class A
{
public void showfile() throws java.io.IOException
{
// do someting
}
}
showfile() method throws IOException
so when ever you use/call it you have to either catch that exception or again thorw it.
Something like:
try
{
showfile();
}
catch(IOException e)
{
e.printStackTrace();
}