Hello,
Someone can help me to resolve the exercise, I don't understand allLines and linesForRemoval
Thanks
package fr.codegym.task.task17.task1721;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Transactionnalité
*/
public class Solution {
public static List<String> allLines = new ArrayList<>();
public static List<String> linesForRemoval = new ArrayList<>();
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int counter = 0 ;
// Liste de fichier
while (counter == 2) {
String nameFile = reader.readLine();
counter ++;
//if (nameFile.isEmpty()) break;
allLines.add(nameFile);
}
Solution solution = new Solution();
solution.joinData();
}
public void joinData() throws CorruptedDataException {
}
}