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.
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.
Step by Step Solution
3.38 Rating (167 Votes )
There are 3 Steps involved in it
Code that repeatedly prompts the user for a file name until the ... View full answer
Get step-by-step solutions from verified subject matter experts
