Write a program that reads in words from a file and prompts the user for another word.

Question:

Write a program that reads in words from a file and prompts the user for another word. Print the longest word from the file that contains the given word, or "No match"

if the word does not occur in the file. Use the max method of Stream.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: