Age Calculator Demo in Java v1.0
Submitted By: bharathh
A simple program that calculates in years, months, and, days the number of days that a person has lived for since his/her date of birth.
Most age calculators that I found online were all wrong so I thought I'd create one of my own. It has an agecalculator object that can basically calculate the age difference between any two dates with a little modification. Currently the upperbound date is set to the date that the program is run on.
I've tried to write REALLY clean code, but please do send in your comments and feedback on what you think about it.
README is included in the source.
NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our
Number of downloads:
Posted by: bhavesh on Wednesday, January 28, 2009
Posted by: rv.kalpana on Sunday, February 15, 2009
Hi ur right.. there is no perfect age calculator in java on net.. after exhaustive search i found urs...its very useful.. thank u..
this code is wrong
Posted by: proj manager on Friday, April 24, 2009
in file AgeCalculator.java line 201 should be
dayToday += dayBorn;
Please find my agecalculator(normal)
Posted by: Suren on Thursday, August 09, 2012
public static void main(String args)
InputStreamReader ins=new InputStreamReader(System.in);
BufferedReader hey=new BufferedReader(ins);
System.out.println("Please enter your name: ");
System.out.println("Please enter your birth date: ");
System.out.println("please enter your birth month:");
System.out.println("please enter your birth year:");
System.out.println("please enter current year:");
int bDate = Integer.parseInt(date);
int bMonth = Integer.parseInt(month);
int bYear = Integer.parseInt(year);
System.out.println(" Hi " + name + " your are " + age + " years " + yourMonth + " months old ");
Add Your Rating