Question: Create a JAVA program that inputs words from a file called words.txt into an array called wordArray. Use a method called inputArray(wordArray) to do this.
Create a JAVA program that inputs words from a file called words.txt into an array called wordArray. Use a method called inputArray(wordArray) to do this. There are 11 words in the input file. Call selectionSort to sort the array. Print out the contents of the (sorted) array using a method called printArray(wordArray).
selectionSort:
public static words.txt: noncollectable reallocation drenching obnoxious venality dybbuk shotgun changelessly handiwork unheralded dovecote
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
