I think I have been looking at it too long. I have this simple code but cannot see what is wrong with it. I think my error is in the static main but am absolutely stuck. Thank you for any help.
public class Triangle
{
public static void main(String[] args)
private double base;
private double height;
public Triangle ()
{
base = 1;
height = 1;
}
public Triangle (double b, double h)
{
base = b;
height = h;
}
public double computeArea()
{
double area;
area = .5 * base * height;
return area;
}
}