java.time.LocalDateを使って誕生日から現在の年齢を計算する方法。
BirthdayService.java
public int getAge(int year, int month, int day) {
// 計算対象の誕生日
LocalDate birthday = LocalDate.of(year, month, day);
// 現在の年月日
LocalDate today = LocalDate.now();
long duration = ChronoUnit.YEARS.between(birthday, today);
return (int)duration;
}