That's saying that the java.util.Scanner constructor is marked as being able to throw the exception java.io.FileNotFoundException - you either need to wrap that in a try/catch or mark your function as ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...