I have a problem. I dont know how to store current LocalDate in my program.
I have 2 classes:
public class Footballer extends Person {
private int age;
private List<Team> teams = new ArrayList<>();
public Footballer(int age) {
this.age = age;
}
public void addTeam (Team team1) throws IOException {
teams.add(team1);
team1.addFootballer(this);
}
}
And similar class Team. I want to store LocalDate when method addTeam was called. How to do this?