Помогите плизз
package com.javarush.task.task19.task1904;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Scanner;
/*
И еще один адаптер
*/
public class Solution {
public static void main(String[] args) throws ParseException {
}
public static class PersonScannerAdapter implements PersonScanner{
private Scanner fileScanner;
public PersonScannerAdapter(Scanner fileScanner) {
this.fileScanner = fileScanner;
}
@Override
public Person read() throws IOException, ParseException {
String s = fileScanner.nextLine();
String[] s1 = s.split(" ");
Date birth = new Date(Integer.parseInt(s1[3]),Integer.parseInt(s1[4]),Integer.parseInt(s1[5]));
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd/MM/yyyy");
simpleDateFormat.format(birth);
return new Person(s1[0]+" ",s1[1]+" ", s1[2]+ " ", birth);
}
@Override
public void close() throws IOException {
fileScanner.close();
}
}
}