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
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.