Gabe Spound Gabe Spound - 1 month ago 9
Java Question

unrecognized symbol variable (JAVA)

I am new to stackoverflow and can't figure out how to post in code, so I posted a screenshot below, but the initializtion of the variable is cut off. I am getting an unrecognized symbol error. Anybody know why?

Java error screenshot

Kun Kun
Answer

According your screenshot:

public double handleradicand(double a, double b, double c)
{
double rad = b*b - (4*a*c);
return rad;
}

At that time, you need to create a parameter as a container to get the return rad value. For example:in your main method

double tem = handleradicand(a,b,c);
rootradicand(tem);

That should work.

Comments