Question: This must be in java and only must be done in one java source file. Program Requirements: Modify the insertion sort algorithm such that: 1.
This must be in java and only must be done in one java source file.
Program Requirements: Modify the insertion sort algorithm such that: 1. It utilizes a doubly linked list instead of an array. 2. The algorithm must be able to sort a list of lower cased words (strings) in alphabetical order. 3. It should be able to support the sorting of up to 20 words. I will be testing your code via the command line so it is a requirement that your code be able to take in arguments and execute via the command line. Failure to do this will result in zero credit. Comment your code enough so that in case it doesn't work, I can see what you're trying to do and possibly give you partial credit. Example: C:\MyFolder> java InsertionSort apple test going zebra aardvark aardvark apple going test zebra Where C:\MyFolder" is just an example of where the program is being executed from. apple test going zebra aardvark are the input parameters and the output is aardvark apple going test zebra. Your program should not output anything else
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
