How Do I Read Filenames from a Folder and Add Them Into an Arraylist Without Having to Make an Array and Looping all the Answers Into the Arraylist? : For example, say I have a list  of .txt files in a folder. What do I need to do in order for Java to read through each of the names of each file and add them into a string array list without having to do a String[] like other answers have suggested?