Name of public class must match the name of .java file in which it is placed (like public class Foo{} must be placed in Foo.java file). So either:
- rename your file from
Main.javatoWeatherArray.java - rename the class from
public class WeatherArray {topublic class Main {