Possible Duplicate:
How do I calculate someone's age in Java?
I'm creating an application in spring framework which calculates the age after a user enters their birthdate to a UI. So far my getAge bean has the gets and sets, but how do I right the calculation method syntatically?
import java.util.*;
public class ageBean {
Date birthdate;
public Date getBirthday(){
return birthdate;
}
public void setBirthdate(Date birthdate){
this.birthdate=birthdate;
}
//method goes here
}