If you call on a method that has an IOException, do you have to handle that in the method that is calling the method as well? i get an error: "Unhandled exception type IOException" when calling on a method that has an IOException.
here is some of my code:
Code:
public void processRequest(String command) {
command = command.toUpperCase();
switch (command) {
case "L":
listTask(); <<< "Unhandled exception type IOException"
//System.out.print("Now Listing tasks...");
break;
}
}
public void listTask() throws IOException {
gui setStatus = new gui();
setStatus.setCurStatus(1, "Now listing all tasks");