Hi all. I am brand new to Java. I am taking the class at Phoenix and I am attempting to use the NetBeans IDE 7.2.1 tool to create my very first program.
I did the same thing using Notepad and the command prompt, and it worked fine. The NetBean IDE tool is indicating an error that I have no clue how to fix.
I was hoping you folks could steer me in the right direction.
Here is the code from NetBeans:
[code=Java]
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package phoenix;
/**
*
* @author Me
*/
public class Phoenix {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
[/code=Java]
The error I get on line 10 says "class Phoenix is public, should be declared in a file named Phoenix.java"
I have no idea what this means or how to fix it. Any help you can offer would be greatly appreciated!!
Rick