Write a Java application that reads a command-line specified text file containing a list of terms, one per line, and then removes all duplicates (ignoring case) and writes to a new file called "out.txt". Call your test class "WordTest". So for example, if the input file is called "in.txt" and looks like this:
COMS W1004
programming
Programming
COMS W1004
java
is
fun
Then typing $>WordTest in.txt at the prompt should generate a new file named out.txt the looks like this:
COMS W1004
programming
java
is
fun