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 ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results