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.java
toWeatherArray.java
- rename the class from
public class WeatherArray {
topublic class Main {
More Related Contents:
- IntelliJ Organize Imports
- Eclipse does not highlight matching variables
- Spring JUnit: How to Mock autowired component in autowired component
- Java double comparison epsilon
- ThreeTen-Backport error on Android – ZoneRulesException: No time-zone data files registered
- eclipse: how to debug a Java program as a .jar file?
- Using nested enum types in Java
- Java POI the supplied data appears to be in the Office 2007+ XML
- Why is there no parameter contra-variance for overriding?
- How to make Java 6, which fails SSL connection with “SSL peer shut down incorrectly”, succeed like Java 7?
- Maven and the JOGL library?
- Check if Java bytecode contains debug symbols
- Where I can find a detailed comparison of Java XML frameworks? [closed]
- Removing object from ArrayList in for each loop
- Interrupting or stopping a sleeping thread [duplicate]
- What are the pitfalls of a Java noob? [closed]
- Trying to create REST-ful URLs with multiple dots in the “filename” part – Spring 3.0 MVC
- Strange text wrapping with styled text in JTextPane with Java 7
- How can I parse a HTML string in Java?
- Does invoking a constructor mean creating object?
- Declare maven dependency on tools.jar to work on JDK 9
- difference between @Component and @Configuration in Spring 3
- How to auto detect entities in JPA 2.0
- How to parse with GSON when identifier has space in name
- Searching between dates in SQL with JDBC?
- How to run Java program in terminal with external library JAR
- How/Can I use base64 as image source in a Jasper Report template?
- Android: what to choose for requestcode values?
- How to include system dependencies in war built using maven
- The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files