Countries

Report a typo

Given the following code:

try (Scanner scanner = new {1}(new File("test.txt"))) {

    while ({2}.hasNext()) {
        System.out.println(scanner.nextLine());
    }

} {3} (FileNotFoundException e) {
    {4}.printStackTrace();
}

Please, match missed parts of the code.

Match the items from left and right columns
1
2
3
4
catch
scanner
e
Scanner
___

Create a free account to access the full topic