Write a class State definition which has a field variable th…
Write a class State definition which has a field variable the name of the State and another for the population of the State. It will also have the capability to hold the population total for all States and the population of the largest State. Include the constructor State(String) which initializes the State name and the population field with a random population between 1 and 2 million and any other needed activity. Each instance of the State must be able to access the total population and largest population data. Include private methods to get that data.