Question: Write an app. that asks the user via JOptionPanefor the name of a file to read. If the file doesnt exist the app should inform

Write an app. that asks the user via JOptionPanefor the name of a file to read. If the file doesnt exist the app should inform the user of this and ask for a different name (in a loop, until a name that exists is entered). Then the app reads in each name (one word), prints each name and then writes it to an output file in the form name, length of name. When all names have been read the app saysThanks for using my app! The fileof names can be created in Notepad or whatever and pasted into your app's project folder (next to the build.xmland manifest.mffiles).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!