1. Engineering
  2. Computer Science
  3. create a java program that reads an input file named...

Question: create a java program that reads an input file named...

Question details

Create a java program that reads an input file named Friends.txt containing a list 4 names (create this file using Notepad) and builds an ArrayList with them. Use sout<tab> to display a menu asking the user what they want to do:  

1. Add a new name  

2. Change a name

3. Delete a name

4. Print the list  

or 5. Quit   

When the user selects Quit your app creates a new friends.txt output file.

Use methods: main( ) shouldn’t do all the work!

  

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution