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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started