1
0

poprawka w Overwrite

This commit is contained in:
Piotr Baranowski 2020-04-25 12:42:45 +02:00
parent 87ecc6e96f
commit 8e5fccf85d

View File

@ -25,7 +25,7 @@ public class Overwrite {
for(int i = 0; i < fileContent.size(); i++) { for(int i = 0; i < fileContent.size(); i++) {
if(patternPesel.matcher(fileContent.get(i)).find() && !patternFirstName.matcher(fileContent.get(i)).find() && if(patternPesel.matcher(fileContent.get(i)).find() && !patternFirstName.matcher(fileContent.get(i)).find() &&
!patternLastName.matcher(fileContent.get(i)).find()) { !patternLastName.matcher(fileContent.get(i)).find()) {
String dataToOverwrite = personalData.get(0).toString() + " " + personalData.get(1) + " " String dataToOverwrite = personalData.get(0) + " " + personalData.get(1) + " "
+ personalData.get(2) + " " + personalData.get(3); + personalData.get(2) + " " + personalData.get(3);
fileContent.set(i, dataToOverwrite); fileContent.set(i, dataToOverwrite);
peselInFile = true; peselInFile = true;