hello everyone, i am trying to write a code that displays a table with 75 years. each year has to display the world population and the projected population for the following years after that by multiplying the current population by the yearly growth (1.17) but i am running into some issues. first of all, the current population happens to be 6,816,330,827. but when i try to assign a variable to that it says that it is out of range. whyy is this? also i am not sure how and where to put the values for population. this is what i have so far, just the years column 1-75. where would i go from here?
public class WorldPopulation {
public static void main(String[] args) {
int pop ;
double growth=1.17;
{System.out.println("Years " + "Population " + "Increase ");
for (int year=1; year<=75; year++)
System.out.println(year);
}
}
}