Как преобразовать строку в строку Java
File file = new File(fileName);
Scanner input = new Scanner(file);
List<String> list = new ArrayList<String>();
while (input.hasNextLine()) {
list.add(input.nextLine());
}
//adds each line of a text file into an ArrayList
Lovely Lyrebird