JAVA Help!!
I need to make a program that loads the given dictionary filecalled “words.txt” into an ArrayList. I then need to ask the userfor a word and then display the position of the word in the list.If the word is not in the list print out an index of -1. See belowthe input and required output.
Standard Input jackyeszooyeshasdkjaakdno
Required Output
30089 words were loaded.nWhat word are you looking for?n”jack” is at index 9578nSearch again?nWhat word are you looking for?n”zoo” is at index 29875nSearch again?nWhat word are you looking for?n”hasdkjaakd” is at index -1nSearch again?n
Expert Answer
An answer will be send to
PayPal Gateway not configured
PayPal Gateway not configured