Gabe Spound Gabe Spound - 1 year ago 135
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download