![]() |
Java error cannot find symbol? /** * Print to the screen. * * @author Beginner. */ public class Mag { public static void main(String[] args) { double circumference = 2 * Math.PI * radius; System.out.println ("slant height (s): " + circumference); } } I get: Beginner.java:13: error: cannot find symbol double circumference = 2 * Math.PI * radius; ......................................… ^ symbol: variable radius location: class Beginner Please help! Thanks |
Re: Java error cannot find symbol? The radius variable is not declared. Use this code, Code: /** |
Re: Java error cannot find symbol? My guess is that you have a problem with your classpath or you path settings. |
Re: Java error cannot find symbol? Its not the classpath Just as handyman suggested, the radius variable is not declared. |
Re: Java error cannot find symbol? Thanks to all |
| All times are GMT -6. The time now is 04:54 AM. |