Gabe Spound Gabe Spound - 5 months ago 56
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

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);

That should work.