Question
In Java/IntelliJ, Create a string array and populate it with words read in from a file. The size of the array will be the first
In Java/IntelliJ, Create a string array and populate it with words read in from a file. The size of the array will be the first value in the data file and every word after that will appear on its own input line. Assume the file name is data.txt.
Write the code to allow a user to either search for a word in the string array, replace one of the words in the string array, or print the string array. The user should be allowed to continue to perform any of the operations until they choose to exit. This requires using the sentinel loop pattern.
must have at least two well-defined functions, besides main
must also include documentation at the top of the program with, and a sentence or two describing the program. For each function, include JavaDoc documentation. Global variables cannot be used
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