I am working on a Java project that uses comparable interfaces. This project is being done via
Question:
I am working on a Java project that uses comparable interfaces.
This project is being done via Netbeans and is a project.
Write a program that will create an array of Pet objects from a file of veterinary records. Once the array is fully loaded, sort the array by pet age in ASCENDING order, and then find and display only the youngest and oldest pet.
Then, re-sort the array again in ASCENDING order by date of last vaccination (year + month + day) and print the message OwnerName + ", your pet named " + PetName + " was last vaccinated on " + year+"/" + month + "/" + day.
The program would use around ten entries of the following information:
PetName Species Age Year Month Day OwnerLastName OwnerFirstName OwnerEmail
Example: Spot canine 3 2021 03 10 Rodriguez Raul rrodrig@gmail.com
The output of the project when compiling or running would look like this:
This is a program that uses multiple .java files in a Netbeans project. I would greatly prefer if one did not have the program read a TEXT file, but rather have the program ask for input from the user, and then display the above as it's output.
If this could be done as soon as possible I would greatly appreciate it!