Java Practice It || 6.21 getFileName || file processing, input, scanner, method

Publié le: 07 juin 2021
sur la chaîne: Computer Engineering life
786
5

Problem:
https://practiceit.cs.washington.edu/...

Question:
Write a method named getFileName that repeatedly prompts the user for a file name until the user types the name of a file that exists on the system. Once you get a good file name, return that file name as a String. Here is a sample dialogue from one call to your method, assuming that the file good.txt does exist and the others do not:

Type a file name: bad.txt
Type a file name: not_here.txt
Type a file name: good.txt


Sur cette page du site, vous pouvez voir la vidéo en ligne Java Practice It || 6.21 getFileName || file processing, input, scanner, method durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Computer Engineering life 07 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 786 fois et il a aimé 5 téléspectateurs. Bon visionnage!