Write code that repeatedly prompts the user for a file name until the user types the name

Question:

Write code that repeatedly prompts the user for a file name until the user types the name of a file that exists on the system. You may wish to place this code into a method called getFileName, which will return that file name as a String.

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

Step by Step Answer:

Related Book For  answer-question
Question Posted: