Quote
public static void calculator (String[] args) {
int y = 5;
int x = 2;
int z;
z = y*x;
System.out.println ("z");
}
} //basic math test
I save the file as Main.java to compile it like Netbeans 6.8 yells at me too.
When i attempt to run it i get:
"Main class wasn't found in JavaApplication1 project.
I have a feeling I may not have opened the right type of file to just mess around in.
If i want to start with a blank file with nothing to do the basics myself I should be going to New>Category>Java>Empty Java File?
If that is not the problem, then what in my noobish ways have I done wrong?

New Topic/Question
Reply




MultiQuote










|