1private ArrayList<String> readFileLines(String filepath) throws FileNotFoundException, IOException{
2 File fp = new File(filepath);
3 FileReader fr = new FileReader(fp);
4 BufferedReader br = new BufferedReader(fr);
5
6 ArrayList<String> lines = new ArrayList<>();
7 String line;
8 while((line = br.readLine()) != null) { lines.add(line); }
9
10 fr.close();
11 return lines;
12}