Now that we've collected all the placeholders in the template, it's time to get input from the user so we know what each placeholder should be replaced with We're going to allow for the user to fill in the holes in the story.
In this challenge, you will be asking the user to input a word or phrase for each placeholder in the template, and storing these responses for later.
For example, if the template loots like:
The [Adjective] [Color] fox [Past tense verb] the [Adjective] dog.
You will prompt the user once for each placeholder:
Enter a Adjective: (user inputs something here)
Enter a Color: (user inputs something here)
Enter a Past tense verb: (user inputs something here)
Enter a Adiective: (user inputs something here)
And store each of these responses, in the same order as the corresponding placeholders Enter a Adjective: (user inputs something here)
Enter a Color: (user inputs something here)
Enter a Past tense verb: (user inputs something here)
Enter a Adjective: (user inputs something here)
And store each of these responses, in the same order as the corresponding placeholders.
Write the following method:
* Asks user to input replacement words for each placeholder in the ArrayList placeholders.
* Returns an ArrayList containing each replacement
* word in the order they were input
*/
private ArrayList getReplacements(ArrayList