Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need a Java class store animal data in the array list. +Auto generate AnimalID base on hit add button on GUI. +AnimalName (user input name
Need a Java class store animal data in the array list.
+Auto generate AnimalID base on hit add button on GUI.
+AnimalName (user input name of animals)
+Class of AnimalType store data mammals, birds, fish, reptiles, amphibians. User pick one of 5 Animal Types
+Class of AnimalRegion store data Africa, Aviary, and NorthAmerica. User pick one of 3 Animal Region
Another class can Add, Remove, or Update animal data, that bases on animal ID
You can build Graphical user interface (GUI) base on JavaFX but using Swing is fine too.
Here is an idea of GUI
Textbox Animal ID Field Animal Name Field Animal Type Dropbox Field mammals birds fish reptiles amphibians Animal Region Dropbox Field Africa Aviary North America Add Button Auto generate Animal ID, and add Animal Name, Animal Type, and Animal Region into array list. And show the animal inside the display box Update Button Add Button Remove Button Animal ID I Animal Name IAnimal Type I Animal Region Elephant mammals Africa -H Remove an animal base on Animal ID Update an animal base on Animal ID List all animals from array listStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started