/** * Print to the screen. *
Java error cannot find symbol?
6
/**
* 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
* 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
- handyman
- windso0
- IBank
- [1] reply
- jhonrtin
Next Topics on Trending Feed
-
6