The meat of the program starts at line 51.
When I test the output, it looks like it is doing the right thing. This one is twisting my brain.
Any hits will be appreciated.
1. The Solution class must contain a LineItem class.
3. The Solution class must have a public static List<LineItem> field called lines that is initialized immediately.
4. In the main(String[] args) method, the program must read file names from the console (use BufferedReader).
5. In the main(String[] args) method, the BufferedReader used for reading input from the console must be closed after use.
6. The program must read the contents of the first and second file (use FileReader).
7. The file input streams (FileReader) must be closed.