Write Java code that prompts the user for a phrase and a number of times to repeat

Question:

Write Java code that prompts the user for a phrase and a number of times to repeat it, then prints the phrase the requested number of times. Here is an example dialogue with the user:

What is your phrase? His name is Robert Paulson.

How many times should I repeat it? 3

His name is Robert Paulson.

His name is Robert Paulson.

His name is Robert Paulson.

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

Step by Step Answer:

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