Question: How in the shortest amount of lines can you load a file of N lines into an ArrayList of strings. 

This is what I have, anyone have any suggestions for how to cut down line count and objects?

```
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class FileLoad {

    public static void main(String[] args) throws IOException, FileNotFoundException {
        List<String> hs = new ArrayList<String>();
        BufferedReader br = new BufferedReader(new FileReader(args[0]));
        String line;
        while ((line = br.readLine()) != null) {
            hs.add(line);
        }
    }
}

```

Answer: 
In Java 7+, one line:

```
List<String> lines = Files.readAllLines(Paths.get(args[0]), Charset.forName("UTF-8"));

```
You can use `[FileUtils.readLines(File f)](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/FileUtils.html#readLines%28java.io.File%29)` method from **Apache Commons IO** Jar

```
List<String> lines  = FileUtils.readLines(new File("readme.txt"));

```