poprawka w Overwrite
This commit is contained in:
parent
87ecc6e96f
commit
8e5fccf85d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user