Question: ONLY USING JAVA NOT SQL Country List Manager COMMAND MENU 1 - List countries 2 - Add a country 3 - Exit Enter menu number:

ONLY USING JAVA NOT SQL Country List Manager COMMAND MENU 1 - List countries 2 - Add a country 3 - Exit Enter menu number: 1 Canada United States Mexico Enter menu number: 2 Enter country: Thailand This country has been saved. Enter menu number: 1 Canada United States Mexico Thailand Enter menu number: 3 Goodbye. Specifications Create a class named CountryIO that contains these methods: public ArrayList getCountries() public boolean saveCountries(ArrayList countries) Store the list of countries in a text file named countries.txt in the same directory as the CountriesTextFile class. If the countries.txt file doesnt exist, the CountriesIO class should create it. This class should use buffered I/O streams, and it should close all I/O streams when theyre no longer needed. Use the Console class presented in chapter 7 or an enhanced version of it to get and validate the users entries. Possible enhancements Modify the CountriesApp class so it includes a menu choice that allows the user to delete a country from the file.

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!