Continents and Cities


I was wondering why the code int he screenshot turns up an error. Isn’t the main method within the scope of the class?

int continent = 4 should be in the main method, that way the value of continent can be static!