help!!
package zh.codegym.task.task15.task1525;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.io.BufferedReader;
/*
static 块中的文件
*/
public class Solution {
public static List<String> lines = new ArrayList<>();
static{
BufferedReader er = null;
try {
er = new BufferedReader(new FileReader(Statics.FILE_NAME));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
String data ="";
while (true){
try {
if ((data = er.readLine()) != null) {
break;
}
} catch (IOException e) {
e.printStackTrace();
}
lines.add(data);
}
try {
er.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
System.out.println(lines);
}
}