VO파일에 있는 메소드 (student_birthdate변수는 2021-09-08 과 같은 정보를 가지고있음) public Integer getAge() { //현재 년도 구하기 Calendar now = Calendar.getInstance(); //년월일시분초 Integer currentYear = now.get(Calendar.YEAR); //태어난년도를 위한 세팅 SimpleDateFormat format = new SimpleDateFormat("yyyy"); String stringBirthYear = format.format(student_birthdate); //년도만받기 //태어난 년도 Integer birthYear = Integer.parseInt(stringBirthYear); //..