here is the code
{
double a = double.parseDouble(txtRadius.getText());
double b = 3.14;
double c = a * b;
txtCircumference.setText(String.valueOf(c));
}
It is a small piece of code to calculate the circumference of a circle, when i compile it on netbeans I get a class error.
Any help would be appreciated!
Ta,
Steve


Reply With Quote


Bookmarks