Почему валидатор не пропускает по последнему пункту?
package com.javarush.task.task19.task1904;
import java.io.IOException;
import java.util.Date;
import java.util.Scanner;
/*
И еще один адаптер
*/
public class Solution {
public static void main(String[] args) {
}
public static class PersonScannerAdapter implements PersonScanner {
private Scanner fileScanner;
public PersonScannerAdapter(Scanner fileScanner) {
this.fileScanner = fileScanner;
}
@Override
public Person read() throws IOException {
String line = fileScanner.nextLine();
String[] arrayLine = line.split(" ");
String firstName = arrayLine[1];
String middleName = arrayLine[2];
String lastName = arrayLine[0];
Date birthDate = new Date(Integer.parseInt(arrayLine[5]), Integer.parseInt(arrayLine[4]), Integer.parseInt(arrayLine[3]));
return new Person(firstName, middleName, lastName, birthDate);
}
@Override
public void close() throws IOException {
fileScanner.close();
}
}
}