Modify the definition of the class Species in listing by removing the method setSpecies and adding the following methods:
•Five constructors: one for each instance variable, one with three parameters for the three instance variables, and a default constructor. Be sure that each constructor sets all of the instance variables.
•Four methods named set that can reset values: one is the same as the method setSpecies in Listing and the other three each reset one of the instance variables.
Then write a test program to test all the methods you have added. Finally, repeat Practice Program but be sure to use some constructor other than the default constructor when you define new objects of the class Species.


public class OracleDemo{ public static void main(String[] args) { Oracle delphi = new Oracle(); delphi.chat(); }}Write a program to answer questions like the following: Suppose the species Klingon ox has a population of 100 and a growth rate of 15 percent, and the species elephant has a population of 10 and a growth rate of 35 percent. How many years will it take for the elephant population to exceed the Klingon ox population? Use the class Species Your program will ask for the data on both species and will respond by telling you how many years it will take for the species that starts with the lower population to outnumber the species that starts with the higher population. The two species may be entered in any order. It is possible that the species with the smaller population will never outnumber the other species. In this case, your program should display a suitable message stating this fact.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.