Question
Read the words found in the file fstein.txt into an array object or an object created from an API class that implements java.util.List. Then sort
Read the words found in the file fstein.txt into an array object or an object created from an API class that implements java.util.List. Then sort the list using merge sort, then remove all duplicate words. sort the list using insertion into an initially empty list. Do not insert duplicate words. Output the execution time performance of these two processes and the number of words remaining after duplicates have been removed from the list
** You can just use any file you may have to use in the program
** Can you please leave comments before each class method explaining what you are doing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started