This week we will work with File I/O. This can be a little troublesome using IDEs as they can alter your working directory. Because of this, you need to be careful with where and how you look up files. It is generally easier to find a file reliably by using the classpath. There is sample code for you in this project that shows how to do that.
Complete the code in the FileParser class so that the file is read line by line. Trim each line and if it is not empty, add the line to an ArrayList to return.
Complete the code in the ListFileWriter class so that it will write each non-empty item from the ArrayList to the file at the path specified. Make sure you do not write empty lines.
Once you have both classes completed and the tests in the main methods show no errors, update the Main class so that it reads the sampleData into an ArrayList by using the FileParser class, and then use the ListFileWriter to write that into a new file.
Repository: https://github.com/htc-ccis2595/file-read-write
You need to fork this repository and submit a pull request to turn in the assignment. Please post a screenshot of the pull request to the D2L dropbox. The dropbox is mainly used to communicate due dates, not for storing the completed work. You do not need to upload the project to D2L, only to GitHub.