posted 20 years ago
Without any more detail given, it would appear that the mystical method "askString" might throw an IOException, so you have to put a try/catch block around it and deal with the exception yourself, or let the exception pass up to the caller. So either:
try {
askString(...);
}
catch(IOException e) {
// deal with it here
}
or:
yourMethod(arguments) throws IOException {
// your current method here, without catching the exception
}