Learning Goal: I’m working on a java project and need guidance to help me learn.
This program has two parts. The first part reads a text file.The user will enter the file name.The user is asked to enter a word in the file,If the word is not in the file, the program will say that the word was not found.If the word is found, the program will say how many times it is in the file.The second part asks opens a file that holds names.The names will be entered into an ArrayList.The user will then be able to enter 6 more names into the list.The list will then be sorted, and that sorted list will be printed to the screen.This program uses exception handling.