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
Get step-by-step solutions from verified subject matter experts
