Β· Execution of Age Calculator Β·
The software available in this repository allows the calculation of a person's age by taking into account the difference in milliseconds between the current date and the person's date of birth.
The development of this practice consists of the creation of a Person class where a certain person is represented and whose purpose is the calculation of his/her age. The software consists of three versions where use is made of different Java libraries for the implementation of this purpose.
The first version of this software makes use of the Date library of Java which is actually deprecated.
The second version of this software makes use of the Calendar and GregorianCalendar libraries.
The third version of this software makes use of the Java 8 LocalDate library.
-
Clone the repository using git with
git clone https://github.com/BrianSuarezSantiago/Age-Calculator.git
command or download from Source Code. -
Move to the directory where you have the code.
-
Compile using
javac -d . *.java
command followed by thejava agecalculator.Main
command to run and use the available software.
Made with