Java Kid - TechRepublic
General discussion
August 27, 2010 at 10:15 PM
lyrosely

Java Kid

by lyrosely . Updated 15 years, 10 months ago

Please help me! I wrote below code then I compiled it (there is no error):

//A Very Simple Example
//Area of circle
class CircleArea {
public static void main(String[] args) {
float pi, r, a;
pi = 3.1416f;
r = 10.5f;
a = r*r*pi;

System.out.println(a);
}
}

=> Then I click on Run Java Application, but on the Command Prompt showed error:
Exception in thread “main” java.lang.NoClassDefFoundError: Output
Press any key to continue . . .

What’s wrong???

This discussion is locked

All Comments