@@ -0,0 +1,665 @@
+import java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.util.Scanner;%0A%0Apublic class HelloScannerLineCounter %7B%0A    private static final String FILENAME = %22lorem.txt%22;%0A    public static void main(String... args) %7B%0A        System.out.println(%22Hello Scanner Line Counter!%22);%0A        int count = 0;%0A        try %7B%0A            Scanner file = new Scanner(new File(FILENAME));%0A            while (file.hasNextLine()) %7B%0A                file.nextLine();%0A                count++;%0A            %7D%0A            System.out.println(String.format(%22Found %25d lines%22, count));%0A        %7D catch(FileNotFoundException fnf)%7B%0A            fnf.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Create HelloScannerLineCounter.java