ThirdLeft152
Daemon Poster
- Messages
- 1,164
- Location
- Texas
im using jcreator to type up some code and for some reason i keep getting this RTE
java.lang.NoSuchMethodError: main
Exception in thread "main"
anyone have any idea what this could be? here's the code
public class Lab2_Ex2
{
final int a = 7, b= 8;
final double c = 4.23, d = 5.89;
public void main(String args[])
{
int sum, product, difference;
double quotient;
sum = a + b;
product = a * b;
difference = b - a;
quotient = c/d;
System.out.println(a + " + " + b + " = " + sum);
}
}
java.lang.NoSuchMethodError: main
Exception in thread "main"
anyone have any idea what this could be? here's the code
public class Lab2_Ex2
{
final int a = 7, b= 8;
final double c = 4.23, d = 5.89;
public void main(String args[])
{
int sum, product, difference;
double quotient;
sum = a + b;
product = a * b;
difference = b - a;
quotient = c/d;
System.out.println(a + " + " + b + " = " + sum);
}
}