@@ -0,0 +1,1468 @@
+package week10;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.FileReader;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Apublic class FindNumUniqueWords %7B%0A%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%0A%09%09Path path = Paths.get(System.getProperty(%22user.dir%22))%0A%09%09%09%09.resolve(%22article.txt%22);%0A%09%09%0A%09%09BufferedReader reader = new BufferedReader(new FileReader(path.toFile()));%0A%09%09%0A%09%09Set%3CString%3E wordsOfArticle = new HashSet%3C%3E();%0A%09%09%0A%09%09String line = reader.readLine();%0A%09%09int totalLines = 0;%0A%09%09int totalWords = 0;%0A%09%09%0A%09%09while(line != null) %7B%0A%09%09%09System.out.println(%22Processing line: %22 + line);%0A%09%09%09%0A%09%09%09// if there is actual content in the line...%0A%09%09%09if(!line.trim().equals(%22%22)) %7B%0A%09%09%09%09String %5B%5D words = line.split(%22 %22);%0A%09%09%09%09totalWords += words.length;%0A%09%09%09%09%0A%09%09%09%09for(String word : words) %7B%0A%09%09%09%09%09String cleanedUpWord = word.toLowerCase() %0A%09%09%09%09%09%09%09.replace(%22,%22, %22%22) %0A%09%09%09%09%09%09%09.replace(%22:%22, %22%22) %0A%09%09%09%09%09%09%09.replace(%22.%22, %22%22)%0A%09%09%09%09%09%09%09.replace(%22%5C%22%22, %22%22);%0A%09%09%09%09%09%0A%09%09%09%09%09wordsOfArticle.add(cleanedUpWord);%0A%09%09%09%09%7D%09%0A%09%09%09%7D%0A%09%09%09totalLines++;%0A%09%09%09line = reader.readLine();%0A%09%09%7D%0A%09%09%0A%09%09System.out.println(wordsOfArticle);%0A%09%09%0A%09%09System.out.println();%0A%09%09System.out.println(%22How many unique words were in the article?%22);%0A%09%09System.out.println(wordsOfArticle.size());%0A%09%09System.out.println();%0A%09%09System.out.println(%22Total lines:%22);%0A%09%09System.out.println(totalLines);%0A%09%09System.out.println(%22Total Words: %22);%0A%09%09System.out.println(totalWords);%0A%09%7D%0A%09%0A%09%0A%09%0A%09%0A%09%0A%0A%7D%0A

Create FindNumUniqueWords.java