I have two seperate classes, one where i actually do the calculation of the area of a square like the first bit below, and one where I display the result but the one were i display the result is giving me an error saying that it can't find the "computeSquareArea" symbol. Why is it doing this and not transferring between classes?
public double computeSquareArea(double length)
{
return length * length;
}
double sqArea = computeSquareArea(length);
System.out.println("Area of the square is " + sqArea);