pls I need help here
package com.codegym.task.task19.task1904;
import java.io.IOException;
import java.util.Scanner;
import java.util.*;
import java.text.*;
/*
Yet another adapter
*/
public class Solution {
public static void main(String[] args) {
}
public static class PersonScannerAdapter implements PersonScanner {
private final Scanner fileScanner;
public PersonScannerAdapter(Scanner fileScanner){
this.fileScanner = fileScanner;
}
public void close() throws IOException{
fileScanner.close();
}
public Person read() throws IOException{
Person person = null;
if (fileScanner.hasNext()){
String line = fileScanner.nextLine();
String [] params = line.split(" ");
String firstName = params[0];
String lastName = params[1];
String middleName = params[2];
DateFormat df = new SimpleDateFormat("MMM dd yyyy");
Date birthday = null;
try {
birthday = df.parse(params[0] + " " + params[1] + " " + params[2]);
}catch (ParseException e) {
e.printStackTrace();
}
person = new Person(lastName, firstName, middleName, birthday);
}
return person;
}
}
}