Using java.util.HashSet, write a Java method with the following signature that gets the names of two files and writes th
Posted: Thu Jul 14, 2022 2:19 pm
Using java.util.HashSet, write a Java method with the following signature that gets the names of two files and writes the set of all words that are in the first file, but not in the second file in a file called "out.txt". Please assume that two words are separated by white-space, tab, or new line characters. Also, when comparing the content of two files, ignore the case-sensitivity of words. Finally, assume that there are no punctuations used in any of the input files. public static void diff(String filename1, String filename2)\{ // your code...