Hello there, working on this program and can't figure out for the life of me how to get basically take an ArrayList and essentially export it to a .txt file.

Additionally, I'll need to do the opposite; take a .txt file and import it into an ArrayList.

I've tried several different methods and what not, but I can't figure it out from my book. Any suggestions?